Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SourceChangedEventArgs Class

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

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public sealed class SourceChangedEventArgs : RoutedEventArgs
public final class SourceChangedEventArgs extends RoutedEventArgs
public final class SourceChangedEventArgs extends RoutedEventArgs
You cannot use this managed 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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft