Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SourceChangedEventArgs Class

Provides data for the SourceChanged event, used for interoperation. This class cannot be inherited.

Namespace:  System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)
public sealed class SourceChangedEventArgs : RoutedEventArgs
You cannot directly create an instance of this class in XAML.

The SourceChanged event is a routed event where the event identifier is not publicly exposed. This is because this event plays a potentially critical part in interoperation and should not be allowed to be raised arbitrarily by any other source than the internal implementation of a known PresentationSource subclass (currently, the only such class is HwndSource). When implementing an interoperation solution, you can attach or remove handlers for the event (by calling AddSourceChangedHandler and RemoveSourceChangedHandler, respectively) but you cannot perform other operations normally available to routed events such as class handling, adding owners, or raising the event from an arbitrary element source.

This class overrides the RoutedEventArgs virtual method RoutedEventArgs.InvokeEventHandler, in order to return a type-specific handler when requested by the event system. This SourceChangedEventArgs override does not appear in the class members table in this SDK documentation because it is a protected member implemented by a sealed class.

System.Object
  System.EventArgs
    System.Windows.RoutedEventArgs
      System.Windows.SourceChangedEventArgs
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.