Example #1
0
        protected override void OnUnloaded()
        {
            if (Instance == this)
            {
                Instance = null;
            }

            ((ViewModelEditorHUDLayoutControl)this.DataContext).Dispose();
            this.DataContext = null;
        }
Example #2
0
 protected override void InitControl()
 {
     Instance = this;
 }