ContentElement.AddToEventRoute(EventRoute, RoutedEventArgs) メソッド

定義

現在の EventRoute イベント ハンドラー コレクションのハンドラーを、指定した ContentElement に追加します。

public:
 void AddToEventRoute(System::Windows::EventRoute ^ route, System::Windows::RoutedEventArgs ^ e);
public void AddToEventRoute (System.Windows.EventRoute route, System.Windows.RoutedEventArgs e);
member this.AddToEventRoute : System.Windows.EventRoute * System.Windows.RoutedEventArgs -> unit
Public Sub AddToEventRoute (route As EventRoute, e As RoutedEventArgs)

パラメーター

route
EventRoute

ハンドラーの追加先のイベント ルート。

e
RoutedEventArgs

ハンドラーを追加するために使用されるイベント データ。 このメソッドは、引数の RoutedEvent プロパティを使用してハンドラーを作成します。

注釈

コンテンツ ホストの子要素のハンドラーをホストに追加するには、(実装 IContentHostされているかどうかに関係なく) コンテンツ ホスト要素にこのメソッドを使用します EventRoute

適用対象