示例#1
0
 public void OpenInfoWindow()
 {
     if (InfoWindow == null)
     {
         InfoWindow        = HubWindow.New();
         InfoWindow.Source = this;
     }
     else
     {
         InfoWindow.transform.SetAsLastSibling();
     }
 }
示例#2
0
        private void UserControlMouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            if (hub != null && hub.IsVisible)
            {
                //hub is already loaded so just bring it to the front
                hub.Activate();
                return;
            }

            //initalize hub
            hub = new HubWindow();
            hub.Topmost = true;
            hub.AllowsTransparency = true;
            hubContent = new HubControl();
            hubContent.Closing += HubContentClosing;
            hub.Content = hubContent;
            hub.Show();
        }