public void HideInfoPanel() { Dispatcher.InvokeAsync(() => { if (_infoWindow != null) { _infoWindow.Close(); } }, DispatcherPriority.Background); }
public void ToggleInfoPanel() { if (_infoWindow == null) { ShowInfoPanel(); return; } Dispatcher.InvokeAsync(() => { if (_infoWindow != null) { _infoWindow.Close(); } }, DispatcherPriority.Background); }