简体   繁体   English

WPF TabItem不会失去焦点

[英]WPF TabItem doesn't lose focus

I have a tabcontrol binded the an observable list. 我有一个tabcontrol绑定了一个可观察的列表。 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? 关于如何解决此问题的任何想法,或者任何能够调试这种行为的提示?

问题在于,当打开选项卡时,它正在打开“ SAME”选项卡,似乎您无法在没有挂起选项卡的情况下在两个选项卡中添加相同的模型对象。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM