Can someone tell me if silverlight 3 controls use the weak event pattern. So, if I write:
myView.Listbox1.ItemSource = MyView.ViewModel.SomeObservableCollection;
or
MyView.DataGrid1.ItemSource = MyView.ViewModel.SomeOtherObservableCollection;
And the ViewModel here is a singleton that lives much longer than the view itself, will I get memory leaks or do the ListBox and Datagrid controls in silverLight 3 already take care of this?
Also, what about events that I explicitly add a handler to in the view constructor, such as:
MyView() { InitializeComponent(); MyView.ViewModel.OnPropertyChanged += new PropertyChangedEventHandler(model_propertyChanged); }
Is there a simple way of using a weak reference here?
Thanks, Manish