Redigera

Dela via


ElementHost.HostContainer Property

Definition

Gets the parent container of the hosted Windows Presentation Foundation (WPF) element.

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

Property Value

The parent container.

Attributes

Remarks

The host container is the WPF FrameworkElement, which is the parent container for the hosted element. The host container is always at the root of the WPF element hierarchy. To access the parent of the hosted element, access HostContainer directly.

Applies to

See also