Ejemplo n.º 1
0
 void KListener_KeyDown(object sender, RawKeyEventArgs args)
 {
     if (args.Key == MiniMenuKey && (mini == null || mini.Visibility != Visibility.Visible))
     {
         mini = new MiniMenu();
         Mouse.OverrideCursor = Cursors.Cross;
         mini.Show();
     }
 }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MiniMenuWindow = ((ControlsMenu.MiniMenu)(target));

            #line 8 "..\..\..\MiniMenu.xaml"
                this.MiniMenuWindow.KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }