Selected Property
Sets or returns whether or not the list item is selected in its parent SelectionList object.
public bool Selected{
get,
set
}
Example
This example shows the use of the Selected property of the SelectionList control to refer to the selected MobileListItem item.
Sub Button_Click(sender As Object, e As EventArgs)
If SelectionList1.Items(0).Selected Then
Label1.Text = "First Item Selected"
End If
End Sub
[C#]
void Button_Click(object sender, EventArgs e)
{
if (SelectionList1.Items[0].Selected)
{
Label1.Text = "First Item Selected";
}
}
See Also
SelectionList Class
Applies to: MobileListItem Class