private static void SelectedItemsChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { MontuBox ic = (MontuBox)d; IEnumerable oldValue = (IEnumerable)e.OldValue; IEnumerable newValue = (IEnumerable)e.NewValue; ic.OnSelectedItemsChanged(oldValue, newValue); }
private static void MontuItemCheckboxStylePropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { MontuBox ic = (MontuBox)d; Style oldValue = (Style)e.OldValue; Style newValue = (Style)e.NewValue; ic.OnMontuItemCheckboxStyleChanged(oldValue, newValue); }
private static void OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { MontuBox ic = (MontuBox)d; IEnumerable oldValue = (IEnumerable)e.OldValue; IEnumerable newValue = (IEnumerable)e.NewValue; ic.OnItemsSourceChanged(oldValue, newValue); }
private static void MontuPopupBorderStylePropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { MontuBox ic = (MontuBox)d; Style newValue = (Style)e.NewValue; if (newValue != null && ic.MontuPopupBorder != null) { ic.MontuPopupBorder.Style = newValue; } }