UIElement3D.AddToEventRoute(EventRoute, RoutedEventArgs) 方法

定義

針對目前的 EventRoute 事件處理常式集合,將處理常式加入至指定的 UIElement3D

C#
public void AddToEventRoute(System.Windows.EventRoute route, System.Windows.RoutedEventArgs e);

參數

route
EventRoute

加入處理常式的事件路由。

e
RoutedEventArgs

用於加入處理常式的事件資料。 這個方法會使用事件資料的 RoutedEvent 屬性來建立處理常式。

備註

內容主元素可以使用這個方法, (實 IContentHost 作的元素,或是未) 的元素,將子項目的處理程式新增至 EventRoute

適用於

產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10