Ribbon

Getting the selected item from the dropdown in a ribbon in Word 2007 using macro

别等时光非礼了梦想. 提交于 2019-12-06 13:08:20
问题 I see the following question which explains how to get the selected item from the dropdown:- http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/d1cf7b3e-68cf-4b82-b806-a3431acde3b6/ The above thread advises to have a hashtable of the items upfront, cache the selected id in the onAction() of the dropdown and use that selected id to find the item from the hashtable in the onAction() of the button. BUT, in my case, I populate the ribbon XML from the database. This ribbon XML obviously has

Apply CSS on a Specific SharePoint Ribbon Bar Button?

三世轮回 提交于 2019-12-06 12:25:14
Is there a way to simply hide a particular SharePoint ribbon bar button? I've see the CSS code for hiding the entire ribbon bar, but I only want to hide 1 button on it (the check-in button). I've tried referencing it several ways, such as: a#Ribbon.DocLibListForm.Edit.Commit.CheckIn-Large { display: none; !important } ms-cui-ctl-large#Ribbon.DocLibListForm.Edit.Commit.CheckIn-Large { display: none; !important } a.ms-cui-ctl-large#Ribbon.DocLibListForm.Edit.Commit.CheckIn-Large { display: none; !important } It's possible that my CSS is just all wrong, or perhaps I'm going about it the wrong way

Cannot find source for binding with reference with RibbonComboBox

喜夏-厌秋 提交于 2019-12-06 10:52:05
I'm trying to learn WPF and seem to be getting an error I really don't fully understand. System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.Ribbon.RibbonWindow', AncestorLevel='1''. BindingExpression:Path=WindowState; DataItem=null; target element is 'Ribbon' (Name=''); target property is 'NoTarget' (type 'Object') System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.Ribbon.RibbonWindow', AncestorLevel='1''.

RibbonControlsLibrary XamlParseException issue VS 2010

天大地大妈咪最大 提交于 2019-12-06 10:48:58
I have an issue with RibbonControlsLibrary, from the beginning I'm not able to use those controls in my C# apps. The problem appears randomly, mostly after reboot. Sometimes reboot helps and it starts to run properly (without any code changes!). I tested some possibilities and the RibbonWindow control works until I put "Ribbon" control into code! Error is pointed on this control too. Strangest is that issue appears when I'm creating new WPF Ribbon Application! In fact code is as simplest as it can be, but still... Anyone had this problem? I tried to google it, but couldn't find anything about

waterfall plot using ribbon

断了今生、忘了曾经 提交于 2019-12-06 10:21:41
问题 I have a series of spectral data which I want to plot in a waterfall style plot. waterfall itsself is no that usefull, because the thin lines have too many differences in each spectrum, that is is not very usefull I therefore want to try the ribbon function, which looks promising in the docs . But the result is completely different and useless! figure(2); clf; ribbon(spectralSeries); shading flat % otherwise complete dark axis tight EDIT: I created now a manual waterfall plot, which is close

Accessing Ribbon Controls Programatically in an XML Ribbon

浪子不回头ぞ 提交于 2019-12-06 08:47:56
问题 For programming Office Add-ins using C# 4.0, Microsoft provides two different ways of creating and/or modifying the Ribbon interface: you can use the Ribbon Designer or define the Ribbon's layout in Ribbon XML. If you create a ribbon using the Ribbon designer, the class generated in the code behind has visibility to all the controls you've placed on the ribbon. So if I've placed a RibbonDropDown called "dropdown1", I could use the following code to add an item to it: RibbonDropDownItem item =

Excel 2010 - Storing Ribbon Customization in Workbook

旧时模样 提交于 2019-12-06 08:08:24
问题 I'm new to Excel ribbon customization. What is the most straight forward way to store ribbon customization inside a workbook, so that when the workbook is closed the customization disappears without a trace? 回答1: To change the ribbon with a workbook, you need to change the XML file "inside" the xlsx file (which is nothing more but a .zip). Everything is very well explained here: http://www.rondebruin.nl/ribbon.htm Please let us know if that does not answer your question. 回答2: The most

Android Ribbon menu using fragments

让人想犯罪 __ 提交于 2019-12-06 05:31:20
问题 I did a coding for ribbon menu using horizontal scrollview. my code is given below: public class HorzScrollWithListMenuActivity extends Activity { MyHorizontalScrollView scrollView; View menu; View app; ImageView btnSlide; boolean menuOut = false; Handler handler = new Handler(); int btnWidth; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LayoutInflater inflater = LayoutInflater.from(HorzScrollWithListMenuActivity.this); scrollView =

Is there a way to use VBA and XML to add a button to the Office 2010 Ribbon depending on a string in the file name?

烂漫一生 提交于 2019-12-06 05:24:49
问题 I have done some quite extensive customisation to the Office 2010 ribbon in Microsoft Word, using a combination of XML, VBA - using the Custom UI Editor. What I'm trying to establish is that if it's possible to add a button to the ribbon based on if there is a certain string found in the current file name. For example: If fileName contains "PM" (probably using the InStr method) Add button to ribbon Any pointers, examples or articles would be much appreciated. I've done some digging but haven

WPF Ribbon: DataTemplate causes BindingExpression path error

半世苍凉 提交于 2019-12-06 03:38:45
问题 I've run into a small problem using the WPF RibbonControl (October 2010 version). My idea was to bind the ItemsSource property of a RibbonGroup to my viewmodel, and use a DataTemplate to create RibbonButtons as needed. This works, but it causes a binding error (one for each button) when you show the window: System.Windows.Data Error: 40 : BindingExpression path error: 'IsDropDownOpen' property not found on 'object' ''RibbonContentPresenter' (Name='PART_ContentPresenter')'. BindingExpression