private void CoreWindow_KeyUp(CoreWindow sender, KeyEventArgs args) { if (args.VirtualKey == VirtualKey.Shift) { // MessageBox1.ShiftUp(); } else if (args.VirtualKey == VirtualKey.GamepadMenu) { SelectHint.Release(); } else if (args.VirtualKey == VirtualKey.GamepadX) { if (SubFrame.Visibility == Visibility.Visible) { return; } args.Handled = true; //XHint.Release(); var focused = (Windows.UI.Xaml.DependencyObject)FocusManager.GetFocusedElement(); if (focused.GetType() == typeof(ListViewItem)) { var type = ((ListViewItem)focused).Content.GetType(); if (type == typeof(SimpleChannel) || type == typeof(SimpleGuild)) { userButton.Flyout.ShowAt(userButton); } } } }
private void CoreWindow_KeyDown(CoreWindow sender, KeyEventArgs args) { if (args.VirtualKey == VirtualKey.GamepadMenu) { SelectHint.Press(); } else if (args.VirtualKey == VirtualKey.GamepadX) { //XHint.Press(); } }