aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Hive/HexItem.cs
blob: 67a30159519fa23cd684e8d80f401bc1d44473b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.Windows;
using System.Windows.Controls;

namespace Tango.Hive
{
    /// <summary>
    /// Hexagonal content control
    /// </summary>
    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); }
        }

    }
}