Designer中的WPF功能区选项卡视图 [英] WPF Ribbon Tab view in Designer

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

问题描述

我正在使用"Microsoft Ribbon for WPF"并创建多个RibbonTab.我无法找出一种方法来查看/集中设计器中的不同选项卡,并且默认情况下会显示主页"选项卡.要查看我对除主页"选项卡以外的选项卡所做的设计/xaml更改,我必须每次都调试项目并单击选项卡,这不是很方便.或者,我也可以退出要忽略的选项卡xaml.外面有人解决吗?

I'm using "Microsoft Ribbon for WPF" and creating multiple RibbonTab. I cannot figure out a way to view/focus different tabs in the designer and it by default show the "Home" tab. To see design/xaml changes I made to tabs other than the "Home" tab, I have to debug the project every time and click through the tabs, which is not very convenient. Or I can command out the tab xaml I want to to ignore. Anyone body out there has a solution?

推荐答案

您还可以使用功能区上的SelectedIndex属性来设置哪个选项卡是当前选定的选项卡(0是第一个选项卡,1是第二个选项卡,依此类推. )

You can also use the SelectedIndex property on the Ribbon to set which tab is the currently selected tab (0 being the first tab, 1 being the second, etc.)

<ribbon:Ribbon SelectedIndex="0" />

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

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