diff Chronosv2/source/Presentation/Windows/Controls/ShortcutGroupElement.cs @ 10:443821e55f06

Initial cleaned up add from Codeplex files
author stevenh7776 stevenhollidge@hotmail.com
date Tue, 21 Feb 2012 17:25:44 +0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Chronosv2/source/Presentation/Windows/Controls/ShortcutGroupElement.cs	Tue Feb 21 17:25:44 2012 +0700
@@ -0,0 +1,78 @@
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Input;
+
+namespace Chronos.Presentation.Windows.Controls
+{
+    public sealed class ShortcutGroupElement
+        : DesktopElement, ISelectable
+    {
+        #region · Dependency Properties ·
+        
+        /// <summary>
+        /// Identifies the IsSelected dependency property
+        /// </summary>
+        public static readonly DependencyProperty IsSelectedProperty =
+          DependencyProperty.Register("IsSelected",
+                                       typeof(bool),
+                                       typeof(ShortcutGroupElement),
+                                       new FrameworkPropertyMetadata(false));
+
+        #endregion
+
+        #region · Static Constructors ·
+
+        /// <summary>
+        /// Initializes the <see cref="ShortcutElement"/> class.
+        /// </summary>
+        static ShortcutGroupElement()
+        {
+            // set the key to reference the style for this control
+            ShortcutGroupElement.DefaultStyleKeyProperty.OverrideMetadata(
+                typeof(ShortcutGroupElement), new FrameworkPropertyMetadata(typeof(ShortcutGroupElement)));
+
+            Control.IsTabStopProperty.OverrideMetadata(typeof(ShortcutGroupElement),
+                new FrameworkPropertyMetadata(false));
+
+            KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(
+                typeof(ShortcutGroupElement), new FrameworkPropertyMetadata(KeyboardNavigationMode.None));
+
+            KeyboardNavigation.TabNavigationProperty.OverrideMetadata(
+                typeof(ShortcutGroupElement), new FrameworkPropertyMetadata(KeyboardNavigationMode.None));
+
+            KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(
+                typeof(ShortcutGroupElement), new FrameworkPropertyMetadata(KeyboardNavigationMode.None));
+        }
+
+        #endregion
+
+        #region · ISelectable Members ·
+        
+        public Guid ParentId
+        {
+            get;
+            set;
+        }
+
+        public bool IsSelected
+        {
+            get { return (bool)base.GetValue(IsSelectedProperty); }
+            set { base.SetValue(IsSelectedProperty, value); }
+        }
+
+        #endregion
+
+        #region · Constructors ·
+
+        /// <summary>
+        /// Initializes a new instance of the <see cref="ShortcutGroupElement"/> class.
+        /// </summary>
+        public ShortcutGroupElement()
+            : base()
+        {
+        }
+
+        #endregion
+    }
+}