Esempio n. 1
0
        private static void OnWindowPlacementSettingsInvalidated(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) {
            var window = dependencyObject as Window;
            if (window == null || !(e.NewValue is IWindowPlacementSettings))
                return;

            var windowSettings = new WindowSettings(window, (IWindowPlacementSettings)e.NewValue);
            windowSettings.Attach();
        }
Esempio n. 2
0
        private static void OnWindowPlacementSettingsInvalidated(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            var window = dependencyObject as Window;

            if (window == null || !(e.NewValue is IWindowPlacementSettings))
            {
                return;
            }

            var windowSettings = new WindowSettings(window, (IWindowPlacementSettings)e.NewValue);

            windowSettings.Attach();
        }
Esempio n. 3
0
        private static void OnSaveInvalidated(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            var window = dependencyObject as Window;

            if (window == null || !((bool)e.NewValue))
            {
                return;
            }

            var settings = new WindowSettings(window);

            settings.Attach();
        }
        private static void OnSaveInvalidated(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            var window = dependencyObject as Window;
            if (window == null || !((bool)e.NewValue))
                return;

            var settings = new WindowSettings(window);
            settings.Attach();
        }
 public WindowApplicationSettings(WindowSettings windowSettings)
     : base(windowSettings._window.GetType().FullName)
 {
 }
Esempio n. 6
0
 public WindowApplicationSettings(WindowSettings windowSettings)
     : base(windowSettings._window.GetType().FullName)
 {
 }