FrameworkElement.GetUIParentCore 方法
定義
如果沒有視覺父代,則傳回這個項目的替代邏輯父代。Returns an alternative logical parent for this element if there is no visual 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
以外的值。Returns something other than null
whenever a WPF framework-level implementation of this method has a non-visual parent connection.
備註
這個方法會覆寫 UIElement.GetUIParentCore。This method overrides UIElement.GetUIParentCore. 預設的 FrameworkElement 實值會傳回預期的單一視覺效果父系,這與取得值的結果相同 Parent 。The default FrameworkElement implementation returns the expected single visual parent, which is the same result as getting the Parent value. 衍生類別的實可能會傳回替代的父關聯性。Derived class implementations might return alternate parent relationships.