แก้ไข

แชร์ผ่าน


PresentationSource.RemoveSourceChangedHandler Method

Definition

Removes a handler for the SourceChanged event from the provided element.

public:
 static void RemoveSourceChangedHandler(System::Windows::IInputElement ^ e, System::Windows::SourceChangedEventHandler ^ handler);
public static void RemoveSourceChangedHandler (System.Windows.IInputElement e, System.Windows.SourceChangedEventHandler handler);
static member RemoveSourceChangedHandler : System.Windows.IInputElement * System.Windows.SourceChangedEventHandler -> unit
Public Shared Sub RemoveSourceChangedHandler (e As IInputElement, handler As SourceChangedEventHandler)

Parameters

e
IInputElement

The element to remove the handler from.

handler
SourceChangedEventHandler

The handler implementation to remove.

Remarks

Even though this is a routed event, there are special restrictions placed on this event that differ from normal routed event behavior, due to the relatively small number of elements in a typical application scenario that would concern themselves with handling this event.

Applies to

See also