public void Close() { if (!IsClosed) { _Form?.Close(); } _Form = null; }
public void Show() { IsClosed = false; _Form = new TExtentionMenuView(); _Form.DataContext = this; _Form.Deactivated += _Form_Deactivated; _Form.Closing += _Form_Closing; _Form.ShowAsActive(); }