just added the reference Sytem.Windows.Controls.Input 转载于:https://www.cnblogs.com/k22009/p/5190658.html