Example #1
0
        /// <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();
                }
            }
        }
Example #2
0
 public WindowApplicationSettings(WindowSettings windowSettings)
     : base(windowSettings.window.GetType().Name)
 {
     this.windowSettings = windowSettings;
 }
Example #3
0
 private static void SetWindowSettings(DependencyObject dependencyObject, WindowSettings value)
 {
     dependencyObject.SetValue(WindowSettingsPropertyKey, value);
 }