Skip to main content

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.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

public bool Selected { get; set; }

Property Value

Type Description
Boolean

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

Remarks

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