Export (0) Print
Expand All

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)

[BrowsableAttribute(false)]
public Panel HostContainer { 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft