本文整理汇总了C#中Windows.UI.Xaml.Input.KeyRoutedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# KeyRoutedEventArgs类的具体用法?C# KeyRoutedEventArgs怎么用?C# KeyRoutedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
KeyRoutedEventArgs类属于Windows.UI.Xaml.Input命名空间,在下文中一共展示了KeyRoutedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Source_KeyDown
void Source_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == VirtualKey.Enter)
{
OnEnter();
}
}
开发者ID:YAWL,项目名称:YAWL.Common,代码行数:7,代码来源:OnEnter.cs
示例2: UrlInput_KeyDown
private void UrlInput_KeyDown( object sender, KeyRoutedEventArgs e )
{
if( e.Key == Windows.System.VirtualKey.Enter )
{
TryAddUrl();
}
}
开发者ID:tgckpg,项目名称:libtaotu,代码行数:7,代码来源:EditProcUrlList.xaml.cs
示例3: OnTraceLineKeyUp
private void OnTraceLineKeyUp(object sender, KeyRoutedEventArgs e)
{
if (e.Key == VirtualKey.Enter)
{
Trace();
}
}
开发者ID:siatwangmin,项目名称:WinRTXamlToolkit,代码行数:7,代码来源:DebugConsoleTestView.xaml.cs
示例4: txtRePassword_KeyDown
private void txtRePassword_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == Windows.System.VirtualKey.Enter)
{
this.createNewAccount();
}
}
开发者ID:pvdk276,项目名称:w10_QuanLyThuChi,代码行数:7,代码来源:CreateAccount.xaml.cs
示例5: searchBox_KeyDown
private void searchBox_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == Windows.System.VirtualKey.Enter)
{
btnNavigateUrl_Click_1(sender,e);
}
}
开发者ID:yuckxin,项目名称:Search,代码行数:7,代码来源:MainPage.xaml.cs
示例6: OnKeyDown
protected override void OnKeyDown(KeyRoutedEventArgs e)
{
if (e.Key != VirtualKey.Enter)
{
tbInput.Focus(FocusState.Programmatic);
}
}
开发者ID:evgri243,项目名称:pubic-demos,代码行数:7,代码来源:MainPage.xaml.cs
示例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));
}
开发者ID:rid00z,项目名称:redux.NET,代码行数:7,代码来源:MainPage.xaml.cs
示例8: ItemText_OnKeyDown
private void ItemText_OnKeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == VirtualKey.Enter)
{
SaveButton_OnClick(null, null);
}
}
开发者ID:edewit,项目名称:sync-windows-app,代码行数:7,代码来源:DetailPage.xaml.cs
示例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);
}
}
开发者ID:QuickBlox,项目名称:q-municate-dotnet,代码行数:7,代码来源:PrivateChatPage.xaml.cs
示例10: Page_KeyDown
private void Page_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == Windows.System.VirtualKey.F11)
{
ToggleMenu();
}
}
开发者ID:hydr,项目名称:WallboardClient-UAW,代码行数:7,代码来源:MainPage.xaml.cs
示例11: txtKeywords_KeyDown
private void txtKeywords_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == Windows.System.VirtualKey.Enter)
{
Search(SearchType.Enter);
}
}
开发者ID:x01673,项目名称:BCMeng_Project,代码行数:7,代码来源:Dict.xaml.cs
示例12: tbAddress_KeyUp
private void tbAddress_KeyUp(object sender, KeyRoutedEventArgs e)
{
if (e.Key == Windows.System.VirtualKey.Enter)
{
geocode(tbAddress.Text);
}
}
开发者ID:trilok567,项目名称:Windows-Phone,代码行数:7,代码来源:AddressToGeopointPage.xaml.cs
示例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();
}
开发者ID:Mordonus,项目名称:MALClient,代码行数:7,代码来源:WatchedEpisodesFlyout.xaml.cs
示例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();
}
}
开发者ID:deadkitty,项目名称:Mobile-Computing,代码行数:26,代码来源:SearchWordsPage.xaml.cs
示例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));
}
}
开发者ID:vvzwvv,项目名称:UWPTutorials,代码行数:7,代码来源:MainPage.xaml.cs
示例16: txtSearch_KeyDown
/// <summary>
/// 가상 키보드 엔터 누를 시 다음 페이지 이동
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void txtSearch_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == Windows.System.VirtualKey.Enter)
{
MoveNextPage();
}
}
开发者ID:paraneye,项目名称:WinApp,代码行数:12,代码来源:ComponentGrouping.xaml.cs
示例17: OnKeyUp
protected override async void OnKeyUp(KeyRoutedEventArgs e)
{
if (e.Key == VirtualKey.Enter && ViewModel.SendCommand.CanExecute(null))
{
ViewModel.SendCommand.Execute(null);
}
}
开发者ID:evgri243,项目名称:pubic-demos,代码行数:7,代码来源:MainPage.xaml.cs
示例18: AddressBox_OnKeyUp
private void AddressBox_OnKeyUp(object sender, KeyRoutedEventArgs e)
{
if (e.Key == VirtualKey.Enter)
{
Browser.Focus(FocusState.Keyboard);
}
}
开发者ID:ScottIsAFool,项目名称:Speader,代码行数:7,代码来源:WebView.xaml.cs
示例19: PasswordBox_KeyDown
private void PasswordBox_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == VirtualKey.Enter)
{
((LoginViewModel)this.DataContext).LoginCommand.Execute(null);
}
}
开发者ID:jwillmer,项目名称:SharePointAuthentication,代码行数:7,代码来源:LoginView.xaml.cs
示例20: TextBoxKeyDown
void TextBoxKeyDown(object sender, KeyRoutedEventArgs e)
{
if (e.Key == VirtualKey.Escape)
{
this.DetachFromTargetElement();
}
}
开发者ID:nekto-sp,项目名称:win8-xaml-sdk,代码行数:7,代码来源:CustomTriggerBehavior.cs
注:本文中的Windows.UI.Xaml.Input.KeyRoutedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论