简体   繁体   English

如何在WPF中创建MS Office 2007/2010之类的工具提示

[英]How to create Tooltips like MS Office 2007/2010 in WPF

How can I create complex ToolTips for my WPF RibbonItems like I have seen in MS-Office 2007/2010. 我如何为WPF RibbonItem创建复杂的工具提示,就像在MS-Office 2007/2010中看到的那样。 A Sample image is given below. 示例图像如下。

在此处输入图片说明

On MSDN I got an image just like that but MSDN does not tell us how we can create it. MSDN上,我得到了这样的图像,但是MSDN没有告诉我们如何创建它。

在此处输入图片说明

If anyone can help me in making Tooltip like MS Office I will appreciate it. 如果有人可以帮助我制作像MS Office这样的工具提示,我将不胜感激。

Thanks in advance. 提前致谢。

As you can see in the documentation there are several properties on a RibbonButton that refer to parts of the enhanced tooltip: 如您在文档中所看到的 RibbonButton上有一些属性,它们引用了增强工具提示的各个部分:

Come to think of it, those are the exact properties mentioned in the screenshot you have there. 想一想,这些是您在屏幕快照中提到的确切属性。

You can download Ribbon Sample code. 您可以下载Ribbon Sample代码。

If you are beginner start with this very comprehensive tutorial Creating a Ribbon Application 如果您是初学者,请先阅读本非常全面的教程“ 创建功能区应用程序”

Specifying Ribbon Image resources 指定功能区图像资源

Also I would recommend to read this: Understanding Commands & Controls 我也建议您阅读以下内容: 了解命令和控件

For more specific issues you can find quick help in MSDN Ribbon Forum 有关更多特定问题,您可以在MSDN Ribbon Forum找到快速帮助。

Hope it helps! 希望能帮助到你!

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

相关问题 如何为 MS Office 2007 加载项创建清单? - How to create manifest for MS office 2007 add-in? 在标题区域扩展了创建WPF窗口的麻烦(例如Office 2007/2010) - Trouble with creating WPF window extended on the title area (like Office 2007/2010) 如何创建像MS Office应用程序这样的工作区? - How to create workspace like MS office applications? MS Office Excel 2007和2010之间的兼容性 - Compatibility between MS Office Excel 2007 & 2010 Add in 如何检查Excel文件是2007还是2010 Office - how to check whether excel file is of 2007 or 2010 office 在Office 2010这样的WPF应用程序中,如何对Aero glass进行渐变淡化? - How do you do a gradient fade to Aero glass in a WPF application like Office 2010 does? 如何在WPF中创建对话框,如VS 2010中的检查变量对话框 - How to create a dialog in WPF like the inspect variable dialog in in VS 2010 如何创建WPF应用程序预加载器(如Word 2010上的预加载器)? - How to create WPF Application Preloader (like one on this Word 2010)? 如何在WPF中创建MS单词,例如“符号插入”对话框 - How to create MS word like Symbol Insert dialog in WPF 如何创建像Microsoft Office 2010 TP这样的半透明Windows窗体? - How to create semi-transparent Windows form like Microsoft Office 2010 TP?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM