ElementHost.HostContainer 屬性

定義

取得裝載Windows Presentation Foundation (WPF) 元素的父容器。

public:
 property System::Windows::Controls::Panel ^ HostContainer { System::Windows::Controls::Panel ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Controls.Panel HostContainer { get; }
[<System.ComponentModel.Browsable(false)>]
member this.HostContainer : System.Windows.Controls.Panel
Public ReadOnly Property HostContainer As Panel

屬性值

父容器。

屬性

備註

主機容器是 WPF FrameworkElement ,這是裝載專案的父容器。 主機容器一律位於 WPF 元素階層的根目錄。 若要存取託管專案的父代,請直接存取 HostContainer

適用於

另請參閱