示例#1
0
        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);
        }
示例#2
0
        public static void PressedHeaderBackgroundPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            OdcExpander expander = (OdcExpander)d;

            expander.HasPressedBackground = e.NewValue != null;
        }