コード例 #1
0
        private static void ModalBackgroundColorChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            Color        clr = (Color)e.NewValue;
            SlideControl c   = obj as SlideControl;

            if (c != null)
            {
                c._bg = new SolidColorBrush(clr);
            }
        }
コード例 #2
0
        private static void ViewChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            FrameworkElement ele = e.NewValue as FrameworkElement;
            SlideControl     c   = obj as SlideControl;

            if (c != null)
            {
                c.SetView(ele);
            }
        }