Bagikan melalui


Selector.AddSelectedHandler(DependencyObject, RoutedEventHandler) Metode

Definisi

Menambahkan handler untuk kejadian terlampir Selected .

public:
 static void AddSelectedHandler(System::Windows::DependencyObject ^ element, System::Windows::RoutedEventHandler ^ handler);
public static void AddSelectedHandler (System.Windows.DependencyObject element, System.Windows.RoutedEventHandler handler);
static member AddSelectedHandler : System.Windows.DependencyObject * System.Windows.RoutedEventHandler -> unit
Public Shared Sub AddSelectedHandler (element As DependencyObject, handler As RoutedEventHandler)

Parameter

element
DependencyObject

Elemen yang mendengarkan peristiwa ini.

handler
RoutedEventHandler

Penanganan aktivitas untuk ditambahkan.

Berlaku untuk