ItemsControl.ItemsControlFromItemContainer Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns the ItemsControl that owns the specified container element.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- container
- Type: System.Windows.DependencyObject
The container element to return the ItemsControl for.
Return Value
Type: System.Windows.Controls.ItemsControlThe ItemsControl that owns the specified container element; otherwise, null. The ItemsControlFromItemContainer method returns null if container is not a UIElement or the parent is not an ItemsControl.
Show: