Selector.AddSelectedHandler Method (DependencyObject, RoutedEventHandler)

 

Adds a handler for the Selected attached event.

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

public static void AddSelectedHandler(
	DependencyObject element,
	RoutedEventHandler handler
)

Parameters

element
Type: System.Windows.DependencyObject

Element that listens to this event.

handler
Type: System.Windows.RoutedEventHandler

Event handler to add.

.NET Framework
Available since 3.0
Return to top
Show: