// ----------------------------------------------------------------------- // // Copyright 2013 MIT Licence. See licence.md for more information. // // ----------------------------------------------------------------------- namespace Perspex.Controls { using Perspex.Controls.Primitives; public class TabItem : HeaderedContentControl { public static readonly PerspexProperty IsSelectedProperty = PerspexProperty.Register("IsSelected"); public TabItem() { this.AddPseudoClass(IsSelectedProperty, ":selected"); AffectsRender(IsSelectedProperty); } public bool IsSelected { get { return this.GetValue(IsSelectedProperty); } set { this.SetValue(IsSelectedProperty, value); } } } }