Back to Devexpress

GalleryItemGroup.ItemStyleSelector Property

wpf-devexpress-dot-xpf-dot-bars-dot-galleryitemgroup-562152f3.md

latest2.3 KB
Original Source

GalleryItemGroup.ItemStyleSelector Property

Gets or sets an object that chooses a style applied to objects generated with the GalleryItemGroup.ItemsSource collection. This is a dependency property.

Namespace : DevExpress.Xpf.Bars

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public StyleSelector ItemStyleSelector { get; set; }
vb
Public Property ItemStyleSelector As StyleSelector

Property Value

TypeDescription
StyleSelector

A StyleSelector descendant that applies a style based on custom logic.

|

Remarks

The GalleryItemGroup.ItemStyle property defines a style applied to objects generated with the GalleryItemGroup.ItemsSource collection. If you have more than one style, you can implement custom logic to choose the required style. To do this, derive from the StyleSelector class, implement the SelectStyle method that returns the style which meets the required condition, and assign it to the ItemStyleSelector property.

The ItemStyleSelector property supports the MVVM design pattern. Refer the MVVM Support topic for more information.

See Also

ItemStyle

ItemTemplate

ItemTemplateSelector

GalleryItemGroup Class

GalleryItemGroup Members

DevExpress.Xpf.Bars Namespace