FrameworkElement.GetUIParentCore 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
若無視覺父節點,則回傳該元素的替代邏輯父節點。
protected public:
override System::Windows::DependencyObject ^ GetUIParentCore();
protected internal override System.Windows.DependencyObject GetUIParentCore();
override this.GetUIParentCore : unit -> System.Windows.DependencyObject
Protected Friend Overrides Function GetUIParentCore () As DependencyObject
傳回
當WPF框架層級實作有非視覺父連線時,會回傳非 null。
備註
這個方法會覆寫 UIElement.GetUIParentCore。 預設 FrameworkElement 實作會回傳預期的單一視覺父,這與取得 Parent 該值的結果相同。 衍生類別實作可能會回傳替代的父關係。