Is there an example somewhere of binding, a ListBox for example, to a directory? I’m guessing this will involve actually binding to something involving FileSystemWatcher so that the ListBox is updated accordingly.
Is there an example somewhere of binding, a ListBox for example, to a directory?
Share
I don’t know that you can bind to a directory. However, you can bind to an
ObserveableCollectionand then use theFileSystemWatcher‘s events to update thatObserveableCollection, which in turn will update your listbox.