You need to make your list a
DependencyProperty[
^] most likely. I have only knowledge of WPF, not Silverlight. But I can tell you that an
ObservableCollection<t></t>
[
^] should work for objects. For
ObservableCollection<string></string>
, it's more difficult because string objects doesn't implement INotifyPropertyChanged. You would need a wrapper around the string object.
public class MyClass
{
public static DependencyProperty MyListProperty = DependencyProperty.register("MyList", typeof(ObservableCollection<object>, typeof(Myclass));
public ObservableCollection<object> MyList
{
get { return (ObservableCollection<object>)this.GetValue(MyListProperty); }
set { this.SetValue(MyListProperty, value); }
}
}</object></object>