Ejemplo n.º 1
0
        /// <summary>
        /// The DirectionProperty property changed handler.
        /// </summary>
        /// <param name="d">GridExpander that changed IsCollapsed.</param>
        /// <param name="e">An instance of DependencyPropertyChangedEventArgs.</param>
        private static void OnDirectionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GridExpander s = d as GridExpander;

            GridExpanderDirection value = (GridExpanderDirection)e.NewValue;

            s.OnDirectionChanged(value);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// The IsCollapsed property porperty changed handler.
        /// </summary>
        /// <param name="d">GridExpander that changed IsCollapsed.</param>
        /// <param name="e">An instance of DependencyPropertyChangedEventArgs.</param>
        private static void OnIsCollapsedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GridExpander s = d as GridExpander;

            bool value = (bool)e.NewValue;

            s.OnIsCollapsedChanged(value);
        }