本文整理汇总了C#中Windows.UI.Xaml.Input.KeyRoutedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# KeyRoutedEventArgs类的具体用法?C# KeyRoutedEventArgs怎么用?C# KeyRoutedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
KeyRoutedEventArgs类属于Windows.UI.Xaml.Input命名空间,在下文中一共展示了KeyRoutedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Source_KeyDown
void Source_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == VirtualKey.Enter)
{
OnEnter();
}
}
示例2: UrlInput_KeyDown
private void UrlInput_KeyDown( object sender, KeyRoutedEventArgs e )
{
if( e.Key == Windows.System.VirtualKey.Enter )
{
TryAddUrl();
}
}
示例3: OnTraceLineKeyUp
private void OnTraceLineKeyUp(object sender, KeyRoutedEventArgs e)
{
if (e.Key == VirtualKey.Enter)
{
Trace();
}
}
示例4: txtRePassword_KeyDown
private void txtRePassword_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == Windows.System.VirtualKey.Enter)
{
this.createNewAccount();
}
}
示例5: searchBox_KeyDown
private void searchBox_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == Windows.System.VirtualKey.Enter)
{
btnNavigateUrl_Click_1(sender,e);
}
}
示例6: OnKeyDown
protected override void OnKeyDown(KeyRoutedEventArgs e)
{
if (e.Key != VirtualKey.Enter)
{
tbInput.Focus(FocusState.Programmatic);
}
}
示例7: SearchRepositoriesTextBox_KeyUp
private async void SearchRepositoriesTextBox_KeyUp(object sender, KeyRoutedEventArgs e)
{
if (string.IsNullOrWhiteSpace(SearchRepositoriesTextBox.Text))
return;
App.Store.Dispatch(await ActionCreators.SearchRepositories(SearchRepositoriesTextBox.Text));
}
示例8: ItemText_OnKeyDown
private void ItemText_OnKeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == VirtualKey.Enter)
{
SaveButton_OnClick(null, null);
}
}
示例9: TextBox_OnKeyDown
private void TextBox_OnKeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == VirtualKey.Enter && viewModel != null && viewModel.SendCommand.CanExecute(null))
{
viewModel.SendCommand.Execute(null);
}
}
示例10: Page_KeyDown
private void Page_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == Windows.System.VirtualKey.F11)
{
ToggleMenu();
}
}
示例11: txtKeywords_KeyDown
private void txtKeywords_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == Windows.System.VirtualKey.Enter)
{
Search(SearchType.Enter);
}
}
示例12: tbAddress_KeyUp
private void tbAddress_KeyUp(object sender, KeyRoutedEventArgs e)
{
if (e.Key == Windows.System.VirtualKey.Enter)
{
geocode(tbAddress.Text);
}
}
示例13: TxtBoxWatchedEps_OnKeyDown
private void TxtBoxWatchedEps_OnKeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key != VirtualKey.Enter) return;
(DataContext as AnimeItemViewModel).OnFlyoutEpsKeyDown.Execute(e);
WatchedEpsFlyout.Hide();
}
示例14: searchTextbox_KeyDown
private void searchTextbox_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == Windows.System.VirtualKey.Enter)
{
//DataManager.FindWords(searchTextbox.Text);
//matchedItemsListbox.Items.Clear();
//if (AppData.Words != null)
//{
// foreach (Word w in AppData.Words)
// {
// matchedItemsListbox.Items.Add(new DetailWordItem(w));
// }
//}
//hide keyboard TODO: find better solution
searchTextbox.IsEnabled = false;
searchTextbox.IsEnabled = true;
//works but textbox has still focus and i have to unfocus it somehow, otherwise
//the keyboard doesn't show up again if i click in the textbox and i have to first unfocus
//it manually
//InputPane.GetForCurrentView().TryHide();
}
}
示例15: Go_KeyDown
private void Go_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == Windows.System.VirtualKey.Enter)
{
Display.Source = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(Value.Text));
}
}