void WpfTextView_Closed(object sender, EventArgs e) { OnDisabled(); wpfTextView.Closed -= WpfTextView_Closed; wpfTextView.LayoutChanged -= WpfTextView_LayoutChanged; imageSourceService.Unregister(this); }
protected void ViewClosed() { OnDisabled(); imageSourceService.Unregister(this); }