RoutedPropertyChangingEventHandler.cs 1.1 KB

12345678910111213141516171819202122232425
  1. // (c) Copyright Microsoft Corporation.
  2. // This source is subject to the Microsoft Public License (Ms-PL).
  3. // Please see http://go.microsoft.com/fwlink/?LinkID=131993] for details.
  4. // All other rights reserved.
  5. using System;
  6. using System.Windows;
  7. namespace System.Windows.Controls
  8. {
  9. /// <summary>
  10. /// Represents methods that handle various routed events that track property
  11. /// values changing. Typically the events denote a cancellable action.
  12. /// </summary>
  13. /// <typeparam name="T">
  14. /// The type of the value for the dependency property that is changing.
  15. /// </typeparam>
  16. /// <param name="sender">
  17. /// The object where the initiating property is changing.
  18. /// </param>
  19. /// <param name="e">Event data for the event.</param>
  20. /// <QualityBand>Preview</QualityBand>
  21. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1003:UseGenericEventHandlerInstances", Justification = "To match pattern of RoutedPropertyChangedEventHandler<T>")]
  22. public delegate void RoutedPropertyChangingEventHandler<T>(object sender, RoutedPropertyChangingEventArgs<T> e);
  23. }