diff --git a/Terminal.Gui/Core/View.cs b/Terminal.Gui/Core/View.cs index 736589b90..0b59fab8e 100644 --- a/Terminal.Gui/Core/View.cs +++ b/Terminal.Gui/Core/View.cs @@ -554,13 +554,17 @@ namespace Terminal.Gui { public ustring Title { get => title; set { - title = value; - SetNeedsDisplay (); + if (!OnTitleChanging (title, value)) { + var old = title; + title = value; + SetNeedsDisplay (); #if DEBUG - if (title != null && string.IsNullOrEmpty (Id)) { - Id = title.ToString (); + if (title != null && string.IsNullOrEmpty (Id)) { + Id = title.ToString (); + } +#endif // DEBUG + OnTitleChanged (old, title); } -#endif } } diff --git a/Terminal.Gui/Windows/Wizard.cs b/Terminal.Gui/Windows/Wizard.cs index 0cbca467d..245b07c90 100644 --- a/Terminal.Gui/Windows/Wizard.cs +++ b/Terminal.Gui/Windows/Wizard.cs @@ -78,6 +78,7 @@ namespace Terminal.Gui { /// /// The Title is only displayed when the is used as a modal pop-up (see . public new ustring Title { + // BUGBUG: v2 - No need for this as View now has Title w/ notifications. get => title; set { if (!OnTitleChanging (title, value)) {