當前位置: 首頁>>代碼示例>>C#>>正文


C# Input.KeyRoutedEventArgs類代碼示例

本文整理匯總了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();
     }
 }
開發者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


注:本文中的Windows.UI.Xaml.Input.KeyRoutedEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。