Ejemplo n.º 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)
         {
             WindowsSettings settings = new WindowsSettings(window);
             settings.Attach();
         }
     }
 }
Ejemplo n.º 2
0
#pragma warning disable 618 // "System.Windows.UIElement.PersistId" ist veraltet: "PersistId is an obsolete property and may be removed in a future release.  The value of this property is not defined."
            public WindowApplicationSettings(WindowsSettings windowSettings)
                : base(windowSettings.window.PersistId.ToString())
            {
                this.windowSettings = windowSettings;
            }