コード例 #1
0
 public void HideInfoPanel()
 {
     Dispatcher.InvokeAsync(() =>
     {
         if (_infoWindow != null)
         {
             _infoWindow.Close();
         }
     }, DispatcherPriority.Background);
 }
コード例 #2
0
        public void ToggleInfoPanel()
        {
            if (_infoWindow == null)
            {
                ShowInfoPanel();
                return;
            }

            Dispatcher.InvokeAsync(() =>
            {
                if (_infoWindow != null)
                {
                    _infoWindow.Close();
                }
            }, DispatcherPriority.Background);
        }