Visual Studio 2008、WPF 选项卡。我怎样才能把它放在前面?
我不知道如何将 TabItem
带到 Visual Studio 2008 wpf 项目中 TabControl
的前面,以便我可以看到正在编辑的控件。
视觉显示部分仅显示第一个 TabItem
上的控件。它确实在运行时有效,但在设计时无效。
听起来很迟钝,也许我是,但我不知道怎么做,如果有人能告诉我怎么做,我真的很感激?
我试过把东西放在前面,把东西推到后面?单击文档大纲、查看属性、双击、拔头发、用头撞墙……
如此简单的事情怎么可能让我无法理解呢? :(
谢谢。
I cannot figure out how to bring a TabItem
to the front of a TabControl
in a visual studio 2008 wpf project so that I can see the controls I'm editing.
The visual display part only ever shows the controls on the first TabItem
. It does works in run time, just not in design time.
Sounds retarded, maybe I am, but I can't figure out how and I'd really appreciate if anyone could tell me how?
I've tried bringing things to the front, pushing things to the back? Clicking through document outline, looking through properties, double clicking, pulling my hair out, banging my head on the wall....
How can something so simple elude me? :(
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 TabItem 上设置 IsSelected 属性是可行的,但至少可以说它很晦涩,充其量也很混乱。
事实上,自 2008 年 8 月 11 日起,此问题已得到修复,可以按照您期望的方式工作,但是 Windows Update 不会通知您该更新可用,即使您从 Visual Studio 2008“帮助>”中查看也不会通知您该更新。检查更新”菜单项。当我迁移到新笔记本电脑时,我自己也遇到了这个问题,其中选项卡控件在我的旧机器上可以正常工作,但在我的新机器上却不能。经过仔细检查,我发现不同之处在于缺少 Visual Studio 2008 SP1,安装后选项卡控件又开始正常工作。前往;
http://msdn.microsoft.com/en-us/vstudio/cc533448。 。
这让我想知道,即使在更新到 VS2008 之前,Tab 控件也可以在 Expression Blend 中正常工作,并且由于 SP1 更新是针对 VS2008,而不是针对 .Net 框架,因此该控件不应该发生更改 那么,Microsoft 是否将选项卡控件的设计时行为写入 UI 中而不是控件本身?这会很奇怪,但如果设计时行为在控制范围内,它在 Blend 而不是 VS2008 中将如何工作?也许 Blend 和 VS2008 都有自己的一组控制模板来处理设计时行为?如果它们这样做的话,您可能会认为这两个程序会共享它们。嗯...
PS:别忘了安装Windows Update 现在找到的VS2008 SP1 的3 个安全更新,500MB 神圣的cr_p 蝙蝠侠。
Setting the IsSelected property on the TabItem works but it's obscure to say the least and kludgy at best.
This problem has in fact been fixed to work the way you would expect it to work since 8/11/2008 however Windows Update doesn't notify you that the update is available, not even if you check from the Visual Studio 2008 "Help>Check for Updates" menu item. I just ran across this issue myself as I was migrating to a new laptop where the Tab Control worked properly on my old machine but not on my new machine. On closer inspection I found that the difference was that the Visual Studio 2008 SP1 was missing, once I installed that the Tab Control started working properly again. Go to;
http://msdn.microsoft.com/en-us/vstudio/cc533448.aspx
This makes me wonder though, even before the update to VS2008 the Tab Control worked properly in Expression Blend and since the SP1 update was to VS2008, not to the .Net framework, the control shouldn't have changed. So, did Microsoft write the design time behavior for the Tab Control into the UI vs the control itself? That would be very wierd but how would it work in Blend and not VS2008 if the design time behavior was in the control? Maybe Blend and VS2008 each have their own set of control templates that handle design time behavior? You would think that the two programs would share them if they did. Hmmmm...
PS: Don't forget to install the 3 security updates to VS2008 SP1 that Windows Update finds now, 500MB holy cr_p batman.
使用
TabItem
上的IsSelected
属性Use the
IsSelected
property on theTabItem