IsSelected Property
Collapse the table of content
Expand the table of content

ListBoxItem.IsSelected Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that indicates whether a ListBoxItem is selected.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public bool IsSelected { get; set; }
<ListBoxItem IsSelected="bool"/>

Property Value

Type: System.Boolean
true if the item is selected; otherwise, false. The default is false.

Dependency property identifier field: IsSelectedProperty

To select a ListBoxItem in a ListBox, set this property to true.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2018 Microsoft