aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/MenuItem.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GraphicObjects/MenuItem.cs')
-rw-r--r--src/GraphicObjects/MenuItem.cs16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/GraphicObjects/MenuItem.cs b/src/GraphicObjects/MenuItem.cs
index 591be2b0..2734377e 100644
--- a/src/GraphicObjects/MenuItem.cs
+++ b/src/GraphicObjects/MenuItem.cs
@@ -34,6 +34,18 @@ namespace Crow
// public event EventHandler Unpop;
string caption;
+ Command command;
+
+ [XmlAttributeAttribute()][DefaultValue(null)]
+ public virtual Command Command {
+ get { return command; }
+ set {
+ if (command == value)
+ return;
+ command = value;
+ NotifyValueChanged ("Command", command);
+ }
+ }
[XmlAttributeAttribute][DefaultValue("MenuItem")]
public string Caption {
@@ -45,10 +57,6 @@ namespace Crow
NotifyValueChanged ("Caption", caption);
}
}
-// [XmlIgnore]
-// public virtual Alignment Orientation {
-// get { return Parent is Menu ? (Parent as Menu).Orientation : (Parent as MenuItem); }
-// }
Menu MenuRoot {
get {