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


C# KeyEventArgs.IsEnter方法代碼示例

本文整理匯總了C#中System.Windows.Input.KeyEventArgs.IsEnter方法的典型用法代碼示例。如果您正苦於以下問題:C# KeyEventArgs.IsEnter方法的具體用法?C# KeyEventArgs.IsEnter怎麽用?C# KeyEventArgs.IsEnter使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.Windows.Input.KeyEventArgs的用法示例。


在下文中一共展示了KeyEventArgs.IsEnter方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: txtPass_KeyDown

        private void txtPass_KeyDown(object sender, KeyEventArgs e)
        {
            if (!e.IsEnter())
                return;

            txtConfirm.Focus();
            txtConfirm.SelectAll();
        }
開發者ID:AFPass,項目名稱:7Pass,代碼行數:8,代碼來源:GlobalPass.xaml.cs

示例2: txtConfirm_KeyDown

        private void txtConfirm_KeyDown(object sender, KeyEventArgs e)
        {
            if (!e.IsEnter())
                return;

            if (_cmdSet.IsEnabled)
                SetPassword();
        }
開發者ID:AFPass,項目名稱:7Pass,代碼行數:8,代碼來源:GlobalPass.xaml.cs

示例3: txtUser_KeyDown

 private void txtUser_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.IsEnter())
         txtPassword.Focus();
 }
開發者ID:rgmills,項目名稱:7Pass,代碼行數:5,代碼來源:WebDavDownload.xaml.cs

示例4: txtPassword_KeyDown

 private void txtPassword_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.IsEnter() && _cmdDownload.IsEnabled)
         PerformDownload();
 }
開發者ID:rgmills,項目名稱:7Pass,代碼行數:5,代碼來源:WebDavDownload.xaml.cs

示例5: txtPasswordtext_KeyUp

        private void txtPasswordtext_KeyUp(object sender, KeyEventArgs e)
        {
            txtPassword.Password = txtPasswordtext.Text = (sender is TextBox ? txtPasswordtext.Text : txtPassword.Password);

            UpdatePasswordStatus();

            if (!_cmdOpen.IsEnabled)
                return;

            if (e != null && e.IsEnter())
                OpenDatabase();
        }
開發者ID:gkardava,項目名稱:WinPass,代碼行數:12,代碼來源:Password.xaml.cs

示例6: txtDomain_KeyDown

 private void txtDomain_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.IsEnter())
         OnCompleted(EventArgs.Empty);
 }
開發者ID:AFPass,項目名稱:7Pass,代碼行數:5,代碼來源:WebAuth.xaml.cs

示例7: txtPassword_KeyDown

        private void txtPassword_KeyDown(
            object sender, KeyEventArgs e)
        {
            if (!_cmdOpen.IsEnabled)
                return;

            if (e.IsEnter())
                OpenDatabase();
        }
開發者ID:MarioBinder,項目名稱:7Pass,代碼行數:9,代碼來源:Password.xaml.cs

示例8: txtSearch_KeyDown

 private void txtSearch_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.IsEnter())
         HideKeyboard();
 }
開發者ID:MiffyLiye,項目名稱:codesafe,代碼行數:5,代碼來源:Search.xaml.cs

示例9: txtName_KeyDown

        private void txtName_KeyDown(object sender, KeyEventArgs e)
        {
            if (!e.IsEnter())
                return;

            var txtName = (PhoneTextBox)sender;
            var field = (FieldBinding)txtName.Tag;
            field.IsEditing = false;
        }
開發者ID:MiffyLiye,項目名稱:codesafe,代碼行數:9,代碼來源:EntryFields.xaml.cs

示例10: txtName_KeyDown

 private void txtName_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.IsEnter() && _cmdRename.IsEnabled)
         PerformRename();
 }
開發者ID:oldlaurel,項目名稱:WinPass,代碼行數:5,代碼來源:Rename.xaml.cs

示例11: txtPass_KeyDown

 private void txtPass_KeyDown(
     object sender, KeyEventArgs e)
 {
     if (e.IsEnter() && _cmdOk.IsEnabled)
         Verify();
 }
開發者ID:nthobois,項目名稱:7Pass,代碼行數:6,代碼來源:GlobalPassVerify.xaml.cs

示例12: txtPassword_KeyDown

 private void txtPassword_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.IsEnter())
         PerformLogin();
 }
開發者ID:nthobois,項目名稱:7Pass,代碼行數:5,代碼來源:DropBox.xaml.cs


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