// ----------------------------------------------------------------------- // // Copyright 2014 MIT Licence. See licence.md for more information. // // ----------------------------------------------------------------------- namespace Perspex.Controls { public class ListBoxItem : ContentControl, ISelectable { public static readonly PerspexProperty IsSelectedProperty = PerspexProperty.Register("IsSelected"); static ListBoxItem() { Control.PseudoClass(IsSelectedProperty, ":selected"); } public bool IsSelected { get { return this.GetValue(IsSelectedProperty); } set { this.SetValue(IsSelectedProperty, value); } } } }