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(); } }
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; }