/// <summary> /// Release unused resources and unsubscribe from events. This method must work correctly, /// even if called multiple times. /// </summary> protected virtual void OverrideableDispose() { // This unsubscribes events form the view. VueBindings?.Dispose(); VueBindings = null; GetViewModel()?.OnClosing(); }
/// <inheritdoc/> public virtual void ShowInView(IHtmlView htmlView, KeyValueList <string, string> variables, Navigation redirectedFrom) { View = htmlView; RedirectedFrom = redirectedFrom; SetHtmlViewBackgroundColor(htmlView); VueBindings?.Dispose(); VueBindings = null; }