LostFocusEventManager.RemoveHandler Method (DependencyObject, EventHandler<RoutedEventArgs>)

.NET Framework (current version)
 

Removes the specified event handler from the specified source.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public static void RemoveHandler(
	DependencyObject source,
	EventHandler<RoutedEventArgs> handler
)

Parameters

source
Type: System.Windows.DependencyObject

The source object that the raises the UIElement.LostFocus or ContentElement.LostFocus event.

handler
Type: System.EventHandler<RoutedEventArgs>

The delegate that handles the UIElement.LostFocus or ContentElement.LostFocus event.

Exception Condition
ArgumentNullException

handler is null.

.NET Framework
Available since 4.5
Return to top
Show: