コード例 #1
0
 public WindowApplicationSettings(WindowSettings windowSettings, string sInstanceKey)
     : base(sInstanceKey)
 {
 }
コード例 #2
0
 /// <summary>
 /// Called when SaveSize is changed on an object.
 /// </summary>
 private static void OnSaveSizeInvalidated(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
 {
     Window window = dependencyObject as Window;
     if (window != null)
     {
         if ((bool)e.NewValue)
         {
             WindowSettings settings = new WindowSettings(window, false, true, null);
             settings.Attach();
         }
     }
 }