Browse Source

Fixed AddOwner call for HotKeyProperty

Nikita Tsukanov 10 years ago
parent
commit
2152300be5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Perspex.Controls/MenuItem.cs

+ 1 - 1
src/Perspex.Controls/MenuItem.cs

@@ -29,7 +29,7 @@ namespace Perspex.Controls
             Button.CommandProperty.AddOwner<MenuItem>();
 
         public static readonly PerspexProperty<KeyGesture> HotKeyProperty =
-            HotKeyManager.HotKeyProperty.AddOwner<Button>();
+            HotKeyManager.HotKeyProperty.AddOwner<MenuItem>();
 
         /// <summary>
         /// Defines the <see cref="CommandParameter"/> property.