void Window1_Loaded(object sender, RoutedEventArgs e)
{
DependencyPropertyDescriptor myDescriptor = DependencyPropertyDescriptor.FromProperty(ListBox.ItemsSourceProperty, typeof(ListBox));
//listBox is Name Of ListBox
myDescriptor.AddValueChanged(listBox, new EventHandler(ItemsSourceChanged));
}
//Method will be called when ItemsSOurce Changed
void ItemsSourceChanged(Object sender, EventArgs e)
{
}
No comments:
Post a Comment