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); } }
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); } }