本机控制转换为WPF而不捕获Tab键

时间:2022-12-06 17:15:54

I have a native control that has been brought over to WPF. It has been placed inside a Frame control for it to work correctly. The issue I'm having is that Tabbing through controls in my window treats the "frame" as a single control, and not the control that is inside this control. WPF then tabs through the rest of the controls I have in my window (buttons, menu etc).

我有一个本机控件已被带到WPF。它已被放置在Frame控件内,以使其正常工作。我遇到的问题是在我的窗口中通过控件选项卡将“框架”视为单个控件,而不是此控件中的控件。 WPF然后选中我窗口中的其他控件(按钮,菜单等)。

How can I get the control inside the Frame to capture the tab key and then tab through its own controls? The control does have textboxes, and I can type inside it; it seems to only be the tab key so far.

如何在Frame内部获取控件以捕获Tab键,然后通过其自己的控件进行选项卡?控件确实有文本框,我可以在里面键入;到目前为止似乎只是tab键。

The Tab key works fine in WinForms so I'm only assuming it's WPF/Frame that's causing the issue, and not the WPF-port itself.

Tab键在WinForms中工作正常,所以我只假设它导致问题的WPF / Frame,而不是WPF端口本身。

1 个解决方案

#1


0  

Read these articles: http://msdn.microsoft.com/en-us/library/ms742522.aspx and http://msdn.microsoft.com/en-us/library/ms752055.aspx.

阅读这些文章:http://msdn.microsoft.com/en-us/library/ms742522.aspx和http://msdn.microsoft.com/en-us/library/ms752055.aspx。

#1


0  

Read these articles: http://msdn.microsoft.com/en-us/library/ms742522.aspx and http://msdn.microsoft.com/en-us/library/ms752055.aspx.

阅读这些文章:http://msdn.microsoft.com/en-us/library/ms742522.aspx和http://msdn.microsoft.com/en-us/library/ms752055.aspx。