私のデフォルトのキーを押すと、ボタンが押されてリリースされたエフェクト(マウスの押下をシミュレートする)になります。デフォルトのキーが押されたときにボタンが押された効果を表示
私はこの
private void OnKeyDownHandler(object sender, KeyEventArgs e)
{
if (e.Key == Key.Enter)
{
VisualStateManager.GoToState(btnLogin, "Pressed", true);
System.Threading.Thread.Sleep(300);
VisualStateManager.GoToState(btnLogin, "Normal", true);
btnLogin_Click(sender, e);
}
}
カントはそれが仕事を得ることを試みました。
はい私が使用した試しのIsDefault =私はこれを使用することを追加する必要が何をすべきか真 – deception1