ribbon-control

Microsoft Ribbon for WPF (4.0.0.11019)

偶尔善良 提交于 2019-12-14 03:42:56
问题 I am using the latest WPF Ribbon control downloaded from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4&displaylang=en In Windows XP, the Ribbon application window’s title bar looks like from Windows 98… or like from console window. How can I improve the appearance of tittle bar. 回答1: Answered by a Microsoft Consultant: The RibbonWindow ships with three templates as of the October 2010 release - Classic, Aero Basic, and Aero with glass. On XP

How to add header to MS Ribbon's Application Menu

孤街浪徒 提交于 2019-12-13 18:23:20
问题 I am trying to replicate WordPad Application Menu and add a header to the RibbonApplicationMenu. But the header never show. Where do I add this header to the Application Menu (e.g. in WordPad, header shows "Recent Document" <ribbon:RibbonApplicationSplitMenuItem Header="Select an Option to export" ImageSource="image1.png" > <ribbon:RibbonApplicationMenuItem Header="PDF" ImageSource="image2.png" /> <ribbon:RibbonApplicationMenuItem Header="Excel" ImageSource="image3.png /> </ribbon

Bind RibbonComboBox.SelectionBoxItem

风格不统一 提交于 2019-12-11 11:16:49
问题 I'm trying to bind the item selected in a RibbonComboBox to a property of an object. The problem I'm encountering is that the RibbonComboBox.SelectionBoxItem only provides a get accessor; therefore, I cannot bind it to anything in the XAML. Any ideas how to bind the item to the property of an object? I could use a regular ComboBox is there another more appropriate control? xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary" <ribbon:RibbonComboBox

Get selected item's tag of Ribbon ComboBox control in VSTO (VB.Net)

与世无争的帅哥 提交于 2019-12-11 05:14:10
问题 I have a code to list time entry (In Time, Out Time, Comments, Employee Name) information for all the employees from SQL in Excel 2010 using Excel Add-In project. Here, I wanted to move step ahead to list time entry information for selected employee from the ComboBox control (which holds the employee name and employee id in label and tag properties respectively) place in Excel Ribbon using Excel Add-In. Here, I was unable to get the selected employee's tag (Id) from ComboBox that I have added

RibbonControlsLibrary XamlParseException issue VS 2010

五迷三道 提交于 2019-12-10 11:25:59
问题 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

How to set text at the head of a RibbonApplicationMenu

て烟熏妆下的殇ゞ 提交于 2019-12-09 04:32:48
问题 I'm trying to have text in the top level of a RibbonApplicationMenu (trying to the get the word "File" there similar to Word or Outlook). It seems the Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenu http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonapplicationmenu.aspx supports a SmallImageSource but no text property. Setting the Label property doesn't work for this problem. xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly

What does Binding=“{Binding (0)}” mean?

瘦欲@ 提交于 2019-12-08 16:38:09
问题 I found this: <DataTrigger Value="True" Binding="{Binding (0)}"> triggers in RibbonMenuButton template. What does it mean? I've tried to google, but found nothing. UPD more code: <ControlTemplate x:Key="RibbonMenuButtonControlTemplate1" TargetType="{x:Type RibbonMenuButton}"> ... <DataTrigger Binding="{Binding (0)}" Value="True"> <Setter Property="TextElement.Foreground" TargetName="MainGrid" Value="{DynamicResource {x:Static SystemColors.MenuTextBrushKey}}"/> <Setter Property="PathFill"

How can I modify the WPF ribbon application menu dropdown position?

白昼怎懂夜的黑 提交于 2019-12-08 12:35:45
问题 Is it possible to modify the application menu's drop position for the 10/2010 WPF ribbon? I think it's very unusual that a menu opens at the leftmost position, so I'd like to change that. Example: in Word 2007 (which - as you probable all know - has the old ribbon design) the application menu opens as far as possible to the right. I'd like to get this behaviour, too, because at the right is the only sensible position for the menu. All its entries are in the left column, which was right below

How to work with RadioGroup in RibbonControl in WInforms Devexpress?

老子叫甜甜 提交于 2019-12-08 11:31:38
问题 Hi, I need RadioButton on Ribbon Control so I used RadioGroup and created event selectedIndexChanged , In which I performed some tasks private void repositoryItemRadioGroup1_SelectedIndexChanged(object sender, EventArgs e) { RadioGroup rg = (RadioGroup)sender; int index = rg.SelectedIndex; if (index == 0) { // code } if (index == 1) { // code } if (index == 2) { // code } else if (!(index == 2) || !(index == 1)) { // code } } Till now the code work fine.in beforeLeaveRow event I am performing

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