ElementHost::HostContainer Property

 

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

Namespace:   System.Windows.Forms.Integration
Assembly:  WindowsFormsIntegration (in WindowsFormsIntegration.dll)

public:
[BrowsableAttribute(false)]
property Panel^ HostContainer {
	Panel^ get();
}

Property Value

Type: System.Windows.Controls::Panel^

The parent container.

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.

.NET Framework
Available since 3.0
Return to top
Show: