使用WPF RibbonMenu的WinForms应用程序中缺少RibbonTabs [英] RibbonTabs missing from WinForms app with WPF RibbonMenu

查看:80
本文介绍了使用WPF RibbonMenu的WinForms应用程序中缺少RibbonTabs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(不知道这是否是莱特论坛的一部分,对不起...)

我正在WinForms应用程序中测试WPF RibbonMenu控件,但发现了一个错误(我认为)!

I am testing the WPF RibbonMenu control in a WinForms application and I have found a bug (I think)!

我现在已将其复制了3次,希望有人在那里解决或解决此问题.

I reproduced this 3 times now and hope someone out there has a workaround or Fix for it.

这些是我已采取的步骤...(请参阅下面的XAML代码)

These are the steps I have taken... (see XAML code below)

  1. 创建新的Winforms应用程序
  2. 添加ElementHost并将其停靠在顶部
  3. 使Form1成为MDI表单
  4. 添加新的WPF UserControl
  5. 将功能区菜单添加到UC
  6. 添加ApplicationMenu按钮
  7. 添加2个功能区标签
  8. 将2个功能区按钮添加到每个选项卡
  9. 运行

在设计模式"下​​可以看到两个选项卡,而在运行模式"下所有的选项卡都将丢失. 第一个选项卡的按钮是可见的且处于活动状态.

While the 2 tabs were visible in Design Mode, All the tabs are missing in Run Mode.  The buttons for the 1st tab are visible and active.

有人对此有任何想法或解决方法吗?

< UserControl x:Class =" WinFormsWPFRibbonMenu.UserControl1"
<UserControl x:Class="WinFormsWPFRibbonMenu.UserControl1"

推荐答案

SquireDude,

Hi SquireDude,

很奇怪,我在WPF的Ribbon上测试了您的代码,2010年10月版.它可以正常工作.我的测试环境是Windows 7 64位,.Net 3.5和4.以下链接是我的测试项目: http://cid-51b2fdd068799d15.office.live.com/self.aspx/.Public/TestCase/20110426%5E_WPFRibbonInWinform%5E_TestCase.zip

It is strange, I test your code in my side by the Ribbon for WPF Oct. 2010 version. It can work coreectly. My test environment is Windows 7 64-bit, .Net 3.5 and 4 both. The following link is my test project: http://cid-51b2fdd068799d15.office.live.com/self.aspx/.Public/TestCase/20110426%5E_WPFRibbonInWinform%5E_TestCase.zip

顺便说一句,KB 963021:WPF应用程序中的图形问题疑难解答指南可以帮助您解决以下问题: http://support.microsoft.com/kb/963021

By the way, the KB 963021 : Guidelines for troubleshooting graphic issues in WPF applications may help you on this issue: http://support.microsoft.com/kb/963021

此致


这篇关于使用WPF RibbonMenu的WinForms应用程序中缺少RibbonTabs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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