// ----------------------------------------------------------------------- // // Copyright 2013 MIT Licence. See licence.md for more information. // // ----------------------------------------------------------------------- namespace Perspex.Controls { using Mixins; using Perspex.Controls.Primitives; /// /// An item in a or . /// public class TabItem : HeaderedContentControl, ISelectable { /// /// Defines the property. /// public static readonly PerspexProperty IsSelectedProperty = ListBoxItem.IsSelectedProperty.AddOwner(); /// /// Initializes static members of the class. /// static TabItem() { SelectableMixin.Attach(IsSelectedProperty); FocusableProperty.OverrideDefaultValue(typeof(TabItem), true); } /// /// Gets or sets the selection state of the item. /// public bool IsSelected { get { return this.GetValue(IsSelectedProperty); } set { this.SetValue(IsSelectedProperty, value); } } } }