public WindowSettings(Window window, IWindowPlacementSettings windowPlacementSettings) { Class6.yDnXvgqzyB5jw(); base(); this._window = window; this._settings = windowPlacementSettings; }
protected override void OnAttached() { if (base.AssociatedObject != null && base.AssociatedObject.SaveWindowPosition) { IWindowPlacementSettings windowPlacementSettings = base.AssociatedObject.GetWindowPlacementSettings(); WindowSettings.SetSave(base.AssociatedObject, windowPlacementSettings); } }
private void WindowClosing(object sender, CancelEventArgs e) { SaveWindowState(); _window.Closing -= WindowClosing; _window.SourceInitialized -= WindowSourceInitialized; _window = null; _settings = null; }
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; }
public WindowSettings(Window window, IWindowPlacementSettings windowPlacementSettings) { _window = window; _settings = windowPlacementSettings; }
public static void SetSave(DependencyObject dependencyObject, IWindowPlacementSettings windowPlacementSettings) { dependencyObject.SetValue(WindowPlacementSettingsProperty, windowPlacementSettings); }
//private IWindow window; public WindowInterceptor(IWindowPlacementSettings settings) { this.settings = settings; }
public static void SetSave(DependencyObject dependencyObject, IWindowPlacementSettings windowPlacementSettings) { SetWindowPlacementSettings(dependencyObject, windowPlacementSettings); }
private void WindowClosed(object sender, EventArgs e) { SaveWindowState(); _window.StateChanged -= WindowStateChanged; _window.Closing -= WindowClosing; _window.Closed -= WindowClosed; _window.SourceInitialized -= WindowSourceInitialized; _window = null; _settings = null; }