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)
                {
                    WindowPos settings = new WindowPos(window);
                    settings.Attach();
                }
            }
        }
Ejemplo n.º 2
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)
         {
             WindowPos settings = new WindowPos(window);
             settings.Attach();
         }
     }
 }