using System.Windows; using System.Windows.Controls; namespace Tango.Hive { /// /// Hexagonal content control /// public class HexItem : ListBoxItem { static HexItem() { DefaultStyleKeyProperty.OverrideMetadata(typeof(HexItem), new FrameworkPropertyMetadata(typeof(HexItem))); } public static readonly DependencyProperty OrientationProperty = HexGrid.OrientationProperty.AddOwner(typeof(HexItem)); public Orientation Orientation { get { return (Orientation) GetValue(OrientationProperty); } set { SetValue(OrientationProperty, value); } } } }