Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SourceChangedEventHandler Delegate
Collapse the table of content
Expand the table of content

SourceChangedEventHandler Delegate

Represents the method that handles the SourceChanged event on specific listener elements.

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)

public delegate void SourceChangedEventHandler (
	Object sender,
	SourceChangedEventArgs e
/** @delegate */
public delegate void SourceChangedEventHandler (
	Object sender, 
	SourceChangedEventArgs e
In XAML, you can use delegates but you cannot define your own.



The object that raised the event.


The event data.

The "SourceChanged" event that this delegate represents handlers for is not exposed as a public common language runtime (CLR) event. Instead, "SourceChanged" is a routed event that remains private to the WPF infrastructure and is direct routed. You can add and remove handlers to this event despite the private access level of the event itself by using the public methods AddSourceChangedHandler and RemoveSourceChangedHandler.

The sender of the event will be a derived class of PresentationSource.

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

Community Additions

© 2015 Microsoft