Browse Source

Adds Data field to MenuItem

Thomas Nind 3 years ago
parent
commit
4a69da1d19
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Terminal.Gui/Views/Menu.cs

+ 6 - 0
Terminal.Gui/Views/Menu.cs

@@ -43,6 +43,12 @@ namespace Terminal.Gui {
 		ustring title;
 
 		ShortcutHelper shortcutHelper;
+		
+		/// <summary>
+		/// Gets or sets arbitrary data for the menu item.
+		/// </summary>
+		/// <remarks>This property is not used internally.</remarks>
+		public object Data { get; set; }
 
 		/// <summary>
 		/// Initializes a new instance of <see cref="MenuItem"/>