wpf ribbon control, can i put ribbonTab in quickaccesstolbar? - c#

Can I put RibbonTab in QuickAccessToolBar?
I want to create tab like google chrome and firefox 4

That is not possible. Also, I believe it is against the Ribbon UI guidelines, which are rather strict on how the various elements are to be used (I believe the Ribbon UI is licensed under a royalty-free license from Microsoft that dictates these guidelines are to be followed).

That is not possible, no. The RibbonTab is intended to mimic the tabs seen in the Microsoft Office Ribbon.

Related

Searchable Combobox in Office Ribbon Control (Addin Express)

I'm developing an outlook addin using Addin Express Library. I'm currently using the adxribboncontrol.I need to implement ability to search the control based on user input.For a normal winforms control this can be easily implemented as suggested in this SO question Selecting an item in comboBox by typing
But i dont know how to implment this is office ribbon control.The control does not have the relavent properties.How can i get over this issue.
The Fluent UI (aka Ribbon UI), nor Add-in Express, doesn't provide anything for that. It is not possible on the ribbon. It has a limited number of controls.
Instead, I'd suggest creating a view/form region in Outlook where you can place any .net controls with the required functionality. See Advanced Outlook view and form regions for more information.

RibbonDropDown: Selection via Keyboard (OutlookAddin)

I am working on an Outlook-AddIn where I have a RibbonDropDown filled with entries from a list. Since there will be a lot of entries, I want the user to be able to select/search an item by typing the entry. Up to now it's only possible to 'search' for the first letter by typing.
Any ideas on how to achieve this? I tried ComboBox but somehow I failed as I want the user to ONLY be allowed to select available entries and I need to get the selected label afterwards as based on that other buttons/DropDowns will become available.
Thanks!
Office Ribbon controls do not implement this functionality. You can display a window with your own control after a user clicks your ribbon button.
The Fluent UI provides a definiteve set of controls, none of which provides the required functinality. Read more about the Fluent UI (aka Ribbon UI) in the following series of articles:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
As a workaround you may consider adding an Outlook form region where you can implement all what you need. See Creating Outlook Form Regions for more information.
You may find Advanced Outlook view and form regions helpful.

Customizing a toolstrip in C# windows forms

I have a requirement to implement a toolbar similar to microsoft word 2007 using C#.
Actualy I need not implement ribbon control. I just have to implement a similar toolbar that is shown when we click on the tab of the ribbon. Just like grouping some common buttons/controls together (some buttons arranged in horizontal and some in vertical)
How can we do it ?
I suggest to use a RibbonControl. It does everything you want.
There are many free and commercial RibbonControls available for Windows Forms and WPF.
For example:
http://ribbon.codeplex.com/
http://fluent.codeplex.com/
http://www.devcomponents.com/dotnetbar/ribbon-control.aspx
http://www.telerik.com/products/winforms/ribbonbar.aspx

CommandBars in outlook 2010

so I've noticed that CommandBars appear in tabAddIns in outlook 2010 by default. Is there any way I can get them to appear in my custom ribbon tab instead?
If it is impossible or very challenging, I welcome suggestions for easier ways to achieve something similar.
You can create a custom ribbon tab with the Ribbon Designer and move your CommandBar items to be ribbon buttons.
An decent example can be found http://msdn.microsoft.com/en-us/library/bb386104.aspx
You can't control where CommandBar buttons go. That's a "compatibility support" feature of Outlook (and the rest of Office actually) intended only to allow older addins to continue to run and have they're buttons accessible. If you're targeting 2010, you should generally avoid the old CommandBar* objects, and use the ribbon customization instead.
If you require Office 2007/2003 support (which I assume is the reason you have the command bar's) then you ideally need to check the MajorVersion of the office interop dll that is running.
Then you can do soemthing like:
string majorVersionString = Globals.ThisAddIn.Application.Version.Split(new char[] { '.' })[0];
int majorVersion = Convert.ToInt32(majorVersionString);
if (majorVersion < 14)
{
//Register CommandBar
}
Then also create a ribbon targeting the OutlookExplorer ribbon. Because only office 2010 will request that ribbon type, then it will only work for Office 2010.
See http://msdn.microsoft.com/en-us/library/bb398246.aspx for how to create ribbon xml ribbons. The ribbon ID you are after is Microsoft.Outlook.Explorer. More information about extending the Outlook explorer ribbon can be found at http://msdn.microsoft.com/en-us/library/ee692172.aspx#OfficeOLExtendingUI_Explorer
EDIT:
More information about multitargeting multiple versions of Office is available at http://blogs.msdn.com/b/vsto/archive/2010/06/04/creating-an-add-in-for-office-2007-and-office-2010-that-quot-lights-up-quot-on-office-2010-mclean-schofield.aspx

Is it possible to disable the Application Menu on the Ribbon Control? (WPF)

Is there a way to disable to Application Menu, the circle thing on the left hand corner, so the user can't click on it?
I have absolutely no use on that, and cannot think of anything I can use that, I can't find any options to disable it.
Please help
Many thanks
I did something like this, and managed to remove the Application Menu. Do check if this is the way you wanted it to be.
<r:Ribbon.ApplicationMenu>
<r:RibbonApplicationMenu Visibility="Collapsed" >
</r:RibbonApplicationMenu>
</r:Ribbon.ApplicationMenu>
In to xaml file post the code:
<Ribbon ApplicationMenu="{x:Null}">
<TabControl></TabControl>
</Ribbon>
I believe that would go against the Microsoft license for using the ribbon interface.
Check it out here: http://msdn.microsoft.com/en-us/office/aa973809.aspx (dead)
(Archive from 2012-09-11)
Office UI licensing for developers
Overview
The Office UI licensing program is designed for software developers
who wish to implement the Office UI as a software component and/or
incorporate the Office UI into their own applications.
A license to use the Microsoft-claimed intellectual property in the
Office UI is required when the software developer does not use one of
the Microsoft-provided implementations of the UI that carries a
separate license (currently either the Microsoft Windows 7 API
implementation or the Microsoft WPF implementation in the .NET
framework 4).
A license is also required when the software developer wishes to use
elements of the Office 2010 UI that are not provided by those other
implementations.
How to implement the Office UI in your own software
There are currently three primary categories of ways for a software
developer to implement the Office UI in their own application or
component.
Use the Microsoft Windows 7 Scenic Ribbon implementation
Details about the Scenic Ribbon can be found on the MSDN Code Gallery. Use of
the Scenic Ribbon implementation is governed by the Microsoft Windows
SDK EULA and does not require a developer to accept the terms of the
Office UI license on this site.
Use the Microsoft Ribbon for WPF Implementation
Details about the Microsoft Ribbon for WPF Implementation (delivered via MS Downloads)
can be found in the MSDN Library. Use of the Microsoft Ribbon for WPF
is governed by a EULA similar to that of the .NET Framework. This
release does not require developers to accept the terms of the Office
UI license on this site.
Use Microsoft Foundation Classes (MFC) Ribbon, build it yourself, or use a third-party component
All of the options in this category
require acceptance of the Office UI License terms on this site. The
additional benefits of this category include the ability to implement
across more platforms, the ability to use elements of the Office 2010
UI that are not incorporated in the other implementations, and the
ability to use a third-party component that may have other benefits to
you as a developer.
If you find this category appropriate you should read the materials
on this site, specifically the Office UI License and the Office UI
Design Guidelines. You may search the web for component vendors by
searching for terms like "Microsoft Ribbon component vendor".
But I don't have any use for it either, so I just put the "Exit" option in there.
EDIT:
It was confusing if the Application Menu required only in the IMPLEMENTATION of the control, or do you have to USE IT in all applications that use a ribbon?
Some things are clear like: You HAVE to have a "Home" tab, and when the application starts, it HAS to be the selected tab (just like in Office 2007.) But some other things... Kind of a guessing game.
I just sent the Office UI group at Microsoft an e-mail asking for some clarification on this. Here's the answer: looks like the Application Menu is NOT optional:
Thank you for submitting your question. The design guidelines do
stipulate that the Application Menu is required and it is a critical
element of the Ribbon UI implementation. Different control sets may
allow for the hiding or disabling of the UI element, but the
expectation is that your finished application will still contain an
Application Menu element (you may seek to implement it yourself as
part of your window frame, or through other means).
EDIT: The license has been retired:
https://law.stackexchange.com/questions/18329/what-is-the-status-of-microsoft-ribbon-licensing-as-of-2017
this.ultraToolbarsManager1.Office2007UICompatibility = false;
this.ultraToolbarsManager1.Ribbon.FileMenuStyle = Infragistics.Win.UltraWinToolbars.FileMenuStyle.None;
Try this one. its Only used windows application form

Categories

Resources