예제 #1
0
 public WindowSettings(Window window, IWindowPlacementSettings windowPlacementSettings)
 {
     Class6.yDnXvgqzyB5jw();
     base();
     this._window   = window;
     this._settings = windowPlacementSettings;
 }
예제 #2
0
 protected override void OnAttached()
 {
     if (base.AssociatedObject != null && base.AssociatedObject.SaveWindowPosition)
     {
         IWindowPlacementSettings windowPlacementSettings = base.AssociatedObject.GetWindowPlacementSettings();
         WindowSettings.SetSave(base.AssociatedObject, windowPlacementSettings);
     }
 }
예제 #3
0
 private void WindowClosing(object sender, CancelEventArgs e)
 {
     SaveWindowState();
     _window.Closing           -= WindowClosing;
     _window.SourceInitialized -= WindowSourceInitialized;
     _window   = null;
     _settings = null;
 }
예제 #4
0
 private void WindowClosed(object sender, EventArgs e)
 {
     this.SaveWindowState();
     this._window.StateChanged      -= new EventHandler(this.WindowStateChanged);
     this._window.Closing           -= new CancelEventHandler(this.WindowClosing);
     this._window.Closed            -= new EventHandler(this.WindowClosed);
     this._window.SourceInitialized -= new EventHandler(this.WindowSourceInitialized);
     this._window   = null;
     this._settings = null;
 }
예제 #5
0
 public WindowSettings(Window window, IWindowPlacementSettings windowPlacementSettings)
 {
     _window   = window;
     _settings = windowPlacementSettings;
 }
예제 #6
0
 public static void SetSave(DependencyObject dependencyObject, IWindowPlacementSettings windowPlacementSettings)
 {
     dependencyObject.SetValue(WindowPlacementSettingsProperty, windowPlacementSettings);
 }
        //private IWindow window;

        public WindowInterceptor(IWindowPlacementSettings settings)
        {
            this.settings = settings;
        }
예제 #8
0
 public static void SetSave(DependencyObject dependencyObject, IWindowPlacementSettings windowPlacementSettings)
 {
     SetWindowPlacementSettings(dependencyObject, windowPlacementSettings);
 }
예제 #9
0
 public static void SetSave(DependencyObject dependencyObject, IWindowPlacementSettings windowPlacementSettings)
 {
     dependencyObject.SetValue(WindowPlacementSettingsProperty, windowPlacementSettings);
 }
예제 #10
0
 private void WindowClosed(object sender, EventArgs e)
 {
     SaveWindowState();
     _window.StateChanged -= WindowStateChanged;
     _window.Closing -= WindowClosing;
     _window.Closed -= WindowClosed;
     _window.SourceInitialized -= WindowSourceInitialized;
     _window = null;
     _settings = null;
 }
예제 #11
0
 public WindowSettings(Window window, IWindowPlacementSettings windowPlacementSettings)
 {
     _window = window;
     _settings = windowPlacementSettings;
 }