Ribbon

How to have a VSTO Ribbon and Context Menu at the same time?

我与影子孤独终老i 提交于 2019-12-01 03:10:34
问题 EDIT: The posters answer is correct except for it should read xmlns="http://schemas.microsoft.com/office/2009/07/customui" for the include. As a side effect the ribbon and context menu defined in an XML file will not work in Office 2007. If you need to add a context menu in 2007, use the now deprecated, and a context menu within the Outlook 2007 message window is NOT POSSIBLE. this.Application.ItemContextMenuDisplay += new Microsoft.Office.Interop.Outlook.ApplicationEvents_11

How to set keytip on a ribbon?

◇◆丶佛笑我妖孽 提交于 2019-12-01 01:56:29
问题 I set the value of my keytip attribute for a split button to be " CKS " but when I execute the add-on in Outlook 2010, I get the hint that it's accessible using " Y7 ". I'm guessing it's some default throw-in and an arbitrary number. How do I force my choice of character combination to be the valid one on the ribbon? 回答1: You should be able to use your own shortcuts by using the keytip attribute in the customUI XML for the ribbon, but sometimes the Office programs decide to change it to Y1 ,

Calling an excel macro from the ribbon

╄→гoц情女王★ 提交于 2019-11-30 18:57:47
问题 Intro: I have written some short excel macros (tested, they work fine) and want to link them to a button in the Ribbon (Excel 2010). I had already done it successfully in Excel 2007. I am using Custom UI Editor to build a new ribbon, which also works fine. Everything is packaged in a .xlam add-in and added to Excel. The ribbon shows up nicely, all other buttons works, but ... Problem: when I hit the button that is linked to the macro I get the error: "wrong number of parameters or property

Ribbon的AvailabilityFilteringRule

雨燕双飞 提交于 2019-11-30 17:58:29
Ribbon的版本是2.3.0.release. 图1 AvailabilityFilteringRule继承了PredicateBasedRule,这是因为使用到了AbstractServerPredicate. choose方法如下List-1, 轮循选一个,判读是否满足条件,如果满足则返回,超过10次,则调用父类的choose方法选择. List-1 public Server choose(Object key) { int count = 0; for(Server server = this.roundRobinRule.choose(key); count++ <= 10; server = this.roundRobinRule.choose(key)) { if (this.predicate.apply(new PredicateKey(server))) { return server; } } return super.choose(key); } 来看AvailabilityPredicate,如下List-2, apply方法返回true,需要满足俩个条件,断路器闭合,调用服务的并发请求数小于限制数 List-2 public boolean apply(@Nullable PredicateKey input) { LoadBalancerStats

WPF RibbonWindow + Windows 8 - control box looks bad

核能气质少年 提交于 2019-11-30 17:50:22
问题 I have a problem with WPF RibbonWindow and Windows 8. In older windows everything works fine, but on Windows 8 control box (minimalize, maximalize and exit buttons) looks terrible I use RibbonControlLibrary from Microsoft (version from October 2010) XAML code is included http://pastebin.com/cNws0CGt (without irrelevant information, I hope I haven't deleted something important) Expected output (Windows 7): 回答1: What you're asking about is the window theme. The reason it is different in Windows

VBA control over the ribbon?

主宰稳场 提交于 2019-11-30 15:44:56
I am in the process of creating a VBA add-in for Excel 2010, and I used the " Custom UI Editor for Microsoft Office " tool to create my own ribbon. However, I would like to give the user the option to load my add-in without displaying the ribbon, or with different parts of the ribbon visible. With menus, I know you can completely control them programmatically, but ribbons seem to work differently. Is there a way in VBA to not load my customUI.xml ribbon tabs on startup? Is there a way to remove items from (or add items to) these tabs at runtime? Scott Holtzman here is a whole slew of help on

Is the MS Ribbon/Office UI License worth worrying about? [closed]

橙三吉。 提交于 2019-11-30 15:32:37
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Imagine I want to create an application which is very similar to MS Word 2007, using C++ in VS2008 and the MFC Feature Pack. For the ribbon, there are 3 options available to me: Use the ribbon from MFC Feature Pack without acquiring a license. Probably dodgy in the long run. You're all right until your product

WPF Prism and Ribbon samples/tutorials

我与影子孤独终老i 提交于 2019-11-30 15:22:01
I'm looking for a WPF prism with ribbon application samples and tutorials. I have found many that cover prism or ribbon but only a few sources provide any information about implementating those two together in one application. No course code usually in available tough. An example with a few simple modules and a classical ribbon tab control would be perfect for me to start. Thanks for any help. Regards, Enzo. Edit: I should add that by combining the two I want to be able to load different modules depending on the ribbon tab selected by user. You can find some info on a customized region adapter

Ribbon in WinForms C# .Net 4.0

半城伤御伤魂 提交于 2019-11-30 14:02:37
Does Microsoft have ribbon control for non-Office applications? If not is there any that are available for free? I like that component and would like to use it my WinForm 4.0 application. vcsjones Microsoft makes one for WPF that you can download here . There is an open source ribbon that should work for traditional WinForms. Microsoft have made a bit of a mess of providing a Ribbon control. Initially it had some very complex licence conditions , these may be relaxed now but the control is not as easily available as some of their recent NuGet deployed goodies. There seem to be more options in

Custom Ribbon onAction syntax question

南笙酒味 提交于 2019-11-30 09:04:24
I followed the directions here to create a custom ribbon for an Access application. But none of the buttons worked! I kept getting an error that stated Access couldn't find the function or macro, even though it was public and in a standard module. Eventually I discovered that it would work if I used the following syntax: onAction="=fncMyFunction('string argument', 1234)" fncMyFunction receives the manually typed in arguments, but not the ribbon object. In Word for another project, I created a custom Ribbon by opening the document up as a .ZIP file, adding the XML in the appropriate place, and