Can anyone give me an example of how to set this up when the StringCollection is a class member? I've been able to get it to work with a StringCollection that's in project settings, but can quite get it right in the case where it's a member of the class.
Edit: Apparently StringCollection doesn't support two way binding, so I've switch to a ObservableCollection<string>.
Just to be clear, I need something like this:
CS
XAMLCode:public partial class MyWindow : Window { private ObservableCollection<string> mystrings; ... }
Code:<Window x:Class="MyWindow" ... <ListBox ItemsSource="{Binding ??? what here ???, Mode="TwoWay"}"/> </Window>


Reply With Quote
Bookmarks