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

傳回

DependencyObject

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

備註

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

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

GetUIParentCore.NET Framework 3.5 版引進。 如需詳細資訊,請參閱版本和相依性

適用於