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)
 {
 }
 protected override void OnAttached()
 {
     WindowSettings.SetSave(AssociatedObject, AssociatedObject.SaveWindowPosition);
 }