WPF TabItem 不会失去焦点
我有一个 tabcontrol 绑定了一个可观察列表。 在我选择一个选项卡之前,一切看起来都很完美。 选择后,选项卡不会失去焦点,并且所选选项卡不可用。 它们不是输出窗口中的任何消息。
这是单击选项卡之前的屏幕截图:
这是之后的屏幕截图(有问题):
关于如何解决此问题的任何想法或任何能够调试此类行为的提示?
I have a tabcontrol binded the an observable list. Eveything look to be perfect until I select a tab. Once selected, the tab doesn't lose its focus and the selected tab is not available. They are not any message in the Output Window.
Here is a screen shot just before clicking the tab:
And here is a screen shot after (with the problem):
Any idea about how to resolve this problem or any hint to be able to debug this kind of behavior?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是,当选项卡打开时,它会打开相同的选项卡,并且似乎您无法在两个选项卡中添加相同的模型对象而不悬挂选项卡。
The problem was that when the tab is open, it was openning the SAME tab and it seems that you can't add the same model object in two tab without having the tab hanging.