本文整理匯總了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();
}
示例2: txtConfirm_KeyDown
private void txtConfirm_KeyDown(object sender, KeyEventArgs e)
{
if (!e.IsEnter())
return;
if (_cmdSet.IsEnabled)
SetPassword();
}
示例3: txtUser_KeyDown
private void txtUser_KeyDown(object sender, KeyEventArgs e)
{
if (e.IsEnter())
txtPassword.Focus();
}
示例4: txtPassword_KeyDown
private void txtPassword_KeyDown(object sender, KeyEventArgs e)
{
if (e.IsEnter() && _cmdDownload.IsEnabled)
PerformDownload();
}
示例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();
}
示例6: txtDomain_KeyDown
private void txtDomain_KeyDown(object sender, KeyEventArgs e)
{
if (e.IsEnter())
OnCompleted(EventArgs.Empty);
}
示例7: txtPassword_KeyDown
private void txtPassword_KeyDown(
object sender, KeyEventArgs e)
{
if (!_cmdOpen.IsEnabled)
return;
if (e.IsEnter())
OpenDatabase();
}
示例8: txtSearch_KeyDown
private void txtSearch_KeyDown(object sender, KeyEventArgs e)
{
if (e.IsEnter())
HideKeyboard();
}
示例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;
}
示例10: txtName_KeyDown
private void txtName_KeyDown(object sender, KeyEventArgs e)
{
if (e.IsEnter() && _cmdRename.IsEnabled)
PerformRename();
}
示例11: txtPass_KeyDown
private void txtPass_KeyDown(
object sender, KeyEventArgs e)
{
if (e.IsEnter() && _cmdOk.IsEnabled)
Verify();
}
示例12: txtPassword_KeyDown
private void txtPassword_KeyDown(object sender, KeyEventArgs e)
{
if (e.IsEnter())
PerformLogin();
}