Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.2 KB

panel_isitemshost.md

File metadata and controls

31 lines (19 loc) · 1.2 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.Panel.IsItemsHost
winrt property

Windows.UI.Xaml.Controls.Panel.IsItemsHost

-description

Gets a value that indicates whether this Panel is a container for UI items that are generated by an ItemsControl.

-property-value

true if this instance of Panel is an items host; otherwise, false. The default is false.

-remarks

IsItemsHost is a calculated property where the value results from the system checking the parents of the Panel for an ItemsControl implementation. If one exists, then the value is true.

In previous frameworks this property was settable. It's not settable in the Windows Runtime, and there should be no need to set it because the system has the calculation behavior. If you want a different relationship between a panel and a parent items control, just create it that way in your XAML control compositing.

-examples

-see-also

ItemsControl, ItemsControl.ItemsPanel