Пример #1
0
 public SelectorDefaultSelectedBeavaior(Selector selector, int value)
 {
     _selector = selector;
     defaultValue = value;
     _itemsSourceDescriptor = DependencyPropertyDescriptor.FromProperty(ItemsControl.ItemsSourceProperty, selector.GetType());
     RegisterEvent();
     _selector.SetValue(DefaultSelectedIndexProperty, value);
 }