コード例 #1
0
        // called when 'Background' property changed
        static void BackgroundChangedCallback(DependencyObject property, DependencyPropertyChangedEventArgs args)
        {
            StandardWindow window = (StandardWindow)property;

            window._contentWindowBackgroundBorder.Background = (Brush)args.NewValue;
        }
コード例 #2
0
        // called when 'Content' property changed
        static void ContentChangedCallback(DependencyObject property, DependencyPropertyChangedEventArgs args)
        {
            StandardWindow window = (StandardWindow)property;

            window._contentWindowBorder.Child = (UIElement)args.NewValue;
        }