/// <summary>
        /// Called when Save is changed on an object.
        /// </summary>
        private static void OnSaveInvalidated(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            Window window = dependencyObject as Window;
            if (window != null)
            {
                if ((bool)e.NewValue)
                {
                    WindowSettings settings = new WindowSettings(window);
                    settings.Attach();

                }
            }
        }
 public WindowApplicationSettings(WindowSettings windowSettings)
     : base(windowSettings.window.GetType().FullName)
 {
     this.windowSettings = windowSettings;
 }