FrameworkContentElement.GetUIParentCore 方法

定義

若無視覺父節點,則回傳該元素的替代邏輯父節點。 在這種情況下, FrameworkContentElement 父節點的值永遠與該 Parent 屬性相同。

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

備註

預設實作會回傳預期的單一視覺父。 自訂實作可能會回傳替代父關係。

適用於