The requested page is not available for the requested platform. You are viewing the content for Default platform.

TileBase.Selected Property

Gets or sets whether the Tile is selected. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Layout

Assembly: DevExpress.UI.Xaml.Layout.v19.1.dll


public bool Selected { get; set; }
Public Property Selected As Boolean

Property Value

Type Description

true, if the Tile is selected; otherwise, false. The default is false.


If the TileBase.AllowSelection property is set to True, the Tile can be selected. In this state, the Tile is rendered enclosed by a selection frame. To select the Tile, set the Selected property to True. In the following figures, you can see the same TileBase displayed in the normal and selected states, respectively.

TileBase_Unselected TileBase_Selected

You can specify the color and thickness of the selection frame using the TileBase.SelectionFrameBrush and TileBase.SelectionFrameThickness properties, respectively.

If the TileBase.AllowSelection property is set to Default or False, the Tile is not displayed in the selected state even if the Selected property is set to True. To get whether the Tile is actually displayed selected, read the TileBase.IsSelected property.

To respond to changing the selection state, handle the TileBase.SelectionChanged event. This event fires when the TileBase.IsSelected property value changes.

See Also