ItemsControl.ItemContainerStyleSelector property

Applies to Windows and Windows Phone

Gets or sets a reference to a custom StyleSelector logic class. The StyleSelector returns different Style values to use for the item container based on characteristics of the object being displayed.

Syntax


public:
property StyleSelector^ ItemContainerStyleSelector { 
   StyleSelector^ get();
   void set (StyleSelector^ value);
}


<itemsControl ItemContainerStyleSelector="styleSelectorReference" />

XAML Values

styleSelectorReference

A reference to an existing StyleSelector. Typically this is a keyed resource, which you reference through a StaticResource markup extension usage.

Property value

Type: StyleSelector

A custom StyleSelector logic class.

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

ItemsControl

 

 

Show:
© 2014 Microsoft