开发者

Invoke KeyDown on WPF Control?

开发者 https://www.devze.com 2023-01-12 18:56 出处:网络
I have two entire开发者_如何转开发ly uncoupled WPF windows, however, if something particular is happening in window 1, I do want to invoke or \'simulate\' a Key.Up/.Down on a control on the 2nd window

I have two entire开发者_如何转开发ly uncoupled WPF windows, however, if something particular is happening in window 1, I do want to invoke or 'simulate' a Key.Up/.Down on a control on the 2nd window. Is that possible?


Are they sharing an application? If they do, you should be able to call BeginInvoke on the control's event handler

But why to simulate a key press when you can just call a function?

0

精彩评论

暂无评论...
验证码 换一张
取 消