public static void IsMinimizedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { OdcExpander expander = d as OdcExpander; RoutedEventArgs args = new RoutedEventArgs((bool)e.NewValue ? MinimizedEvent : MaximizedEvent); expander.RaiseEvent(args); }
public static void PressedHeaderBackgroundPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { OdcExpander expander = (OdcExpander)d; expander.HasPressedBackground = e.NewValue != null; }