protected override void OnUnloaded() { if (Instance == this) { Instance = null; } ((ViewModelEditorHUDLayoutControl)this.DataContext).Dispose(); this.DataContext = null; }
protected override void InitControl() { Instance = this; }