Beispiel #1
0
        private void UserControl_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            //! If HUB is already loaded so just bring it to the front.
            if (hub != null && hub.IsVisible)
            {
                hub.Activate();
                return;
            }

            //! Initialize HUB
            hub                    = new Hub();
            hub.Topmost            = false; //! Set to false if HUB respects LockScreen of Newgen.
            hub.AllowsTransparency = true;  //! Set to false if widget contains "WebBrowser".
            hub.ShowDialog();               //! Finally Display HUB.
        }