Share via


UIElement3D.GetUIParentCore 方法

定義

在衍生類別中覆寫時,如果沒有任何視覺父項存在,則會傳回 ui (UI) 父代的替代使用者介面。

protected public:
 System::Windows::DependencyObject ^ GetUIParentCore();
protected internal System.Windows.DependencyObject GetUIParentCore ();
member this.GetUIParentCore : unit -> System.Windows.DependencyObject
Protected Friend Function GetUIParentCore () As DependencyObject

傳回

一個物件,如果衍生類別的實作有替代父代連接要報告。

備註

這個方法預設虛擬實作會傳 null回 。 FrameworkElement 提供實際的實作。

替代父系用於事件路由,以防元素建立替代父結構,使其事件會以從可視化樹狀結構路由至標準父系的標準模式來路由傳送,或在預覽路由策略中向下路由。

適用於