From 00456a4ee7adfa2eacd17989f390844596f5ff29 Mon Sep 17 00:00:00 2001 From: Patrik Svensson Date: Wed, 30 Sep 2020 20:45:52 +0200 Subject: [PATCH] Add support for arbitrary data in views Closes #932 --- Terminal.Gui/Core/View.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Terminal.Gui/Core/View.cs b/Terminal.Gui/Core/View.cs index 852dd121d..94ceace08 100644 --- a/Terminal.Gui/Core/View.cs +++ b/Terminal.Gui/Core/View.cs @@ -170,6 +170,12 @@ namespace Terminal.Gui { /// public Rune HotKeySpecifier { get => textFormatter.HotKeySpecifier; set => textFormatter.HotKeySpecifier = value; } + /// + /// Gets or sets arbitrary data for the view. + /// + /// This property is not used internally. + public object Data { get; set; } + internal Direction FocusDirection { get => SuperView?.FocusDirection ?? focusDirection; set {