本文整理汇总了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();
}