Expression Blend中的选项卡 [英] Tabs in Expression Blend

查看:101
本文介绍了Expression Blend中的选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!
我有一个我在Expression Blend 2中构建的WPF应用程序。
有一个主窗口(窗口1)。在窗口1上有许多按钮。这些按钮每个都在新窗口中打开Window 2,但是根据每个按钮,Window 2会获得不同的图像/媒体。
现在,按钮在新窗口中打开Window 2.我想改变那。我希望整个应用程序都建立在选项卡上。
因此,窗口1将位于选项卡中,用户可以单击一个按钮,它将打开一个包含Window 2内容的新选项卡。在另一个按钮上,它会在新选项卡中打开另一个Window 2实例,只需进行一些更改。

有简单易行的方法吗?
请帮忙。
感谢!

PS如果我没有这么好解释,请问我的意思。

Hi!
I have a WPF application that I'm building in Expression Blend 2.
There's a main window (Window 1). On Window 1 there are a number of buttons. Those buttons each open Window 2 in a new window, but depending on each button, Window 2 gets different images/media.
Right now, The buttons open Window 2 in a new window.
I want to change that. I want the whole application to be built on tabs.
So that Window 1 will be in a tab, and the user can click a button and it will open a new tab that has Window 2's contents.  And on a different button, it opens another instance of Window 2 in a new tab, just with a few changes.

Is there a simple and easy way to do this?
Please help.
Thanks!

P.S. If I didn't explain this so well, just ask what I mean.

推荐答案

我做了很多像这样的工作,但我并没有完全使用标签。我将所有内容保存在window1中,但我想您可以放置​​不同的内容并将其作为用户控件加载。无论如何...我有几个按钮,让我们说3,在顶部。我有3个相应的网格,其中包含内容。根据您单击的按钮,它将显示关联的网格。我这样做的方式将每个网格的可见性设置为隐藏,并在单击相应的按钮时将其切换为可见。我还自定义按钮以更改颜色,或突出显示以指示它是当前选择。希望这有帮助,如果您有任何疑问,请与我联系。
I do a lot of work like this, but I dont exactly use tabs. I keep everything in window1, but I suppose you could place your different content and load them in as user controls also. Anyway... I have a few buttons, lets say 3, across the top. I have 3 corresponding grids with content in them. Depending on which buttons you click on, it will display the associated grid. The way I do this set each grid's visibility to hidden, and toggle it to visible when the corresponding button it clicked. I also customize the button to change color, or be highlighted to indicate that it is the current selection. Hope this helps, let me know if you have any questions.


这篇关于Expression Blend中的选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆