Version

GetPanel Method

Finds and returns the System.Windows.Controls.Panel used from particular control.
Syntax
'Declaration
 
Public Shared Function GetPanel( _
   ByVal itemsContainer As DependencyObject _
) As Panel
public static Panel GetPanel( 
   DependencyObject itemsContainer
)

Parameters

itemsContainer
Instance of object that is inspected for any panels.

Return Value

The itemsContainer as System.Windows.Controls.Panel or when itemsContainer is System.Windows.Controls.ItemsControl the returned object is the Panel object used from System.Windows.Controls.ItemsPresenter of the ItemsControl.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also