csharp System.Windows.Input.KeyEventArgs.KeyStates类(方法)实例源码

下面列出了csharp System.Windows.Input.KeyEventArgs.KeyStates 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.Windows.Inpu   
// A bitwise AND operation is used in the comparison.
// e is an instance of KeyEventArgs.
// btnDown is a Button.
if ((e.KeyStates & KeyStates.Down) > 0)
{
    btnDown.Background = Brushes.Red;
}


问题


面经


文章

微信
公众号

扫码关注公众号