Ejemplo n.º 1
0
        public static void IsExpandedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AeroExpander    expander = d as AeroExpander;
            RoutedEventArgs args     = new RoutedEventArgs((bool)e.NewValue ? ExpandedEvent : CollapsedEvent);

            expander.RaiseEvent(args);
        }
Ejemplo n.º 2
0
        public static void PressedHeaderBackgroundPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AeroExpander expander = (AeroExpander)d;

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