Fixes #723 Views now are notified when they are added or removing.

This commit is contained in:
BDisp
2020-06-23 20:55:49 +01:00
parent 61d51025f8
commit 2013877cbc

View File

@@ -163,6 +163,18 @@ namespace Terminal.Gui {
return false;
}
/// <summary>
/// Method invoked when a view is added.
/// </summary>
/// <param name="view">The view added.</param>
public virtual void OnAddedView (View view) { }
/// <summary>
/// Method invoked when a view being removing.
/// </summary>
/// <param name="view">The view being removing.</param>
public virtual void OnRemovingView (View view) { }
/// <summary>
/// Method invoked when a view gets focus.
/// </summary>