From 2013877cbc85776fdad005864de6c6b70f8331d8 Mon Sep 17 00:00:00 2001 From: BDisp Date: Tue, 23 Jun 2020 20:55:49 +0100 Subject: [PATCH] Fixes #723 Views now are notified when they are added or removing. --- Terminal.Gui/Core/Responder.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Terminal.Gui/Core/Responder.cs b/Terminal.Gui/Core/Responder.cs index 52fce4b21..c1294cb9e 100644 --- a/Terminal.Gui/Core/Responder.cs +++ b/Terminal.Gui/Core/Responder.cs @@ -163,6 +163,18 @@ namespace Terminal.Gui { return false; } + /// + /// Method invoked when a view is added. + /// + /// The view added. + public virtual void OnAddedView (View view) { } + + /// + /// Method invoked when a view being removing. + /// + /// The view being removing. + public virtual void OnRemovingView (View view) { } + /// /// Method invoked when a view gets focus. ///