Inheritance: Windows.UI.Xaml.Controls.Control
コード例 #1
0
        private static void MaskColorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AeroPanel obj   = (AeroPanel)d;
            Color     value = (Color)e.NewValue;

            obj._maskColor = value;
        }
コード例 #2
0
        private static void RenderElementChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AeroPanel obj = (AeroPanel)d;

            FrameworkElement oldValue = (FrameworkElement)e.OldValue;

            if (oldValue != null)
            {
                oldValue.LayoutUpdated -= obj.RenderElement_LayoutUpdated;
            }

            FrameworkElement newValue = (FrameworkElement)e.NewValue;

            if (newValue != null)
            {
                newValue.LayoutUpdated += obj.RenderElement_LayoutUpdated;
            }
        }