/// <inheritdoc /> public void SetDocumentTitle(string title) { if (string.Equals(title, Title, StringComparison.CurrentCultureIgnoreCase)) { return; } string oldTitle = Title; Title = title; DocumentTitleChanged?.Invoke(this, new DocumentTitleChangedEventArgs(oldTitle, title)); }
/// <summary> /// Raises the <see cref="DocumentTitleChanged"/> event. /// </summary> /// <param name="e">A <see cref="DocumentTitleChangedEventArgs"/> that contains the event data.</param> protected virtual void OnDocumentTitleChanged(DocumentTitleChangedEventArgs e) { DocumentTitleChanged?.Invoke(this, e); }