Add support for arbitrary data in views

Closes #932
This commit is contained in:
Patrik Svensson
2020-09-30 20:45:52 +02:00
parent 6e8ef7fe57
commit 00456a4ee7

View File

@@ -170,6 +170,12 @@ namespace Terminal.Gui {
/// </summary>
public Rune HotKeySpecifier { get => textFormatter.HotKeySpecifier; set => textFormatter.HotKeySpecifier = value; }
/// <summary>
/// Gets or sets arbitrary data for the view.
/// </summary>
/// <remarks>This property is not used internally.</remarks>
public object Data { get; set; }
internal Direction FocusDirection {
get => SuperView?.FocusDirection ?? focusDirection;
set {