Mercurial > silverbladetech
comparison 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 |
comparison
equal
deleted
inserted
replaced
9:904a9faadf8b | 10:443821e55f06 |
---|---|
1 using System; | |
2 using System.Windows; | |
3 using System.Windows.Controls; | |
4 using System.Windows.Input; | |
5 | |
6 namespace Chronos.Presentation.Windows.Controls | |
7 { | |
8 public sealed class ShortcutGroupElement | |
9 : DesktopElement, ISelectable | |
10 { | |
11 #region · Dependency Properties · | |
12 | |
13 /// <summary> | |
14 /// Identifies the IsSelected dependency property | |
15 /// </summary> | |
16 public static readonly DependencyProperty IsSelectedProperty = | |
17 DependencyProperty.Register("IsSelected", | |
18 typeof(bool), | |
19 typeof(ShortcutGroupElement), | |
20 new FrameworkPropertyMetadata(false)); | |
21 | |
22 #endregion | |
23 | |
24 #region · Static Constructors · | |
25 | |
26 /// <summary> | |
27 /// Initializes the <see cref="ShortcutElement"/> class. | |
28 /// </summary> | |
29 static ShortcutGroupElement() | |
30 { | |
31 // set the key to reference the style for this control | |
32 ShortcutGroupElement.DefaultStyleKeyProperty.OverrideMetadata( | |
33 typeof(ShortcutGroupElement), new FrameworkPropertyMetadata(typeof(ShortcutGroupElement))); | |
34 | |
35 Control.IsTabStopProperty.OverrideMetadata(typeof(ShortcutGroupElement), | |
36 new FrameworkPropertyMetadata(false)); | |
37 | |
38 KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata( | |
39 typeof(ShortcutGroupElement), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); | |
40 | |
41 KeyboardNavigation.TabNavigationProperty.OverrideMetadata( | |
42 typeof(ShortcutGroupElement), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); | |
43 | |
44 KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata( | |
45 typeof(ShortcutGroupElement), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); | |
46 } | |
47 | |
48 #endregion | |
49 | |
50 #region · ISelectable Members · | |
51 | |
52 public Guid ParentId | |
53 { | |
54 get; | |
55 set; | |
56 } | |
57 | |
58 public bool IsSelected | |
59 { | |
60 get { return (bool)base.GetValue(IsSelectedProperty); } | |
61 set { base.SetValue(IsSelectedProperty, value); } | |
62 } | |
63 | |
64 #endregion | |
65 | |
66 #region · Constructors · | |
67 | |
68 /// <summary> | |
69 /// Initializes a new instance of the <see cref="ShortcutGroupElement"/> class. | |
70 /// </summary> | |
71 public ShortcutGroupElement() | |
72 : base() | |
73 { | |
74 } | |
75 | |
76 #endregion | |
77 } | |
78 } |