Поисковая оптимизация
2
Вклад в тег
private void PossessionField_OnPreviewKeyDown(object sender, KeyEventArgs e)
{
Keys formsKey;
Key wpfKey = e.Key;
formsKey = (Keys)KeyInterop.VirtualKeyFromKey(wpfKey);
System.Windows.Forms.KeyEventArgs ev = new System.Windows.Forms.KeyEventArgs(formsKey);
win.MainForm_KeyDown(sender, ev);