using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Mixins;
using Avalonia.Controls.Primitives;
using System;
namespace Editopia.Control
{
public class TabItemIcon : HeaderedContentControl, ISelectable
{
///
/// Defines the property.
///
public static readonly StyledProperty IsSelectedProperty =
ListBoxItem.IsSelectedProperty.AddOwner();
///
/// Initializes static members of the class.
///
static TabItemIcon()
{
SelectableMixin.Attach(IsSelectedProperty);
FocusableProperty.OverrideDefaultValue(typeof(TabItem), true);
}
///
/// Gets or sets the selection state of the item.
///
public bool IsSelected
{
get { return GetValue(IsSelectedProperty); }
set { SetValue(IsSelectedProperty, value); }
}
}
}