Panel.IsItemsHost property

Applies to Windows and Windows Phone

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

Syntax


public bool IsItemsHost { get; }

Property value

Type: System.Boolean [.NET] | Platform::Boolean [C++]

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Panel
ItemsControl
ItemsControl.ItemsPanel

 

 

Show:
© 2014 Microsoft