// called when 'Background' property changed static void BackgroundChangedCallback(DependencyObject property, DependencyPropertyChangedEventArgs args) { StandardWindow window = (StandardWindow)property; window._contentWindowBackgroundBorder.Background = (Brush)args.NewValue; }
// called when 'Content' property changed static void ContentChangedCallback(DependencyObject property, DependencyPropertyChangedEventArgs args) { StandardWindow window = (StandardWindow)property; window._contentWindowBorder.Child = (UIElement)args.NewValue; }