It apparently either requires a minor sublcassing trick, or manual changing of the File:
http://stackoverflow.com/questions/951876/can-you-have-a-generic-listof-t-in-your-settings-file
The C# version of the inheritance approach would be:
public class ListOfV_Structs : List<v_struct> {}
Add the type "ListOfV_Structs", just as any other type not in the ComboBox. You have to manually specify the fully qualified name, as you cannot brows your own project (for some reason). For example:
public class CollectionOfFilms : ObservableCollection<Film> { }
In Namespace WPFViewModelExample:
WPFViewModelExample.CollectionOfFilms
Can't really give you screenshots, my Visual Studio is stuck on German.
Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2
No comments:
Post a Comment