Пример #1
0
        private static void OnChildChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            WindowPanel windowPanel = d as WindowPanel;

            if (windowPanel._containerWindow != null)
            {
                windowPanel._containerWindow.Content = e.NewValue;
            }
        }
Пример #2
0
        private static void OnIsTransparentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            WindowPanel windowPanel = d as WindowPanel;

            if (e.NewValue != e.OldValue)
            {
                windowPanel.InitContainerWindow((bool)e.NewValue);
            }
        }
Пример #3
0
        private static void OnIsTopmostChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            WindowPanel windowPanel = d as WindowPanel;

            if (windowPanel._containerWindow != null)
            {
                windowPanel._containerWindow.Topmost = (bool)e.NewValue;
            }
        }