Windows Ribbon for WinForms, Part 19 – RecentItems

November 30, 2009

Windows Ribbon for WinForms library now supports working with recent items in the application menu. The result of this post is a yet another sample, “16-RecentItems”, found on the project site. What are recent items? Recent items are items in a list which appears in the application menu. They doesn’t have to be file names and they doesn’t have to be recent, although it is recommended. Every item has 3 properties: Label – Item name, usually file name without path Label Description – Item tooltip, usually full filename path Pinned – Boolean that indicates whether the recent item should not...
5 comments

Windows Ribbon for WinForms, Part 18 – ContextPopup

November 27, 2009

Windows Ribbon for WinForms library now supports using a Context Popup. The result of this post is a yet another sample, “15-ContextPopup”, found on the project site. What is a Context Popup? A context popup is a combination of a small toolbar (called MiniToolbar) and a context menu, which a ribbon enabled application can provide. This popup usually appears when right-clicking an application surface and it usually provide common operation relevant for the clicked surface. Basically it’s just another way to get to your ribbon commands. In fact, since the MiniToolbar (the upper part of the context popup) can’t...
one comment

Windows Ribbon for WinForms, Part 17 – ContextualTabs

November 23, 2009

Windows Ribbon for WinForms library now supports Contextual Tabs. The result of this post is a yet another sample, “14-ContextualTabs”, found on the project site. What are contextual tabs? Contextual tabs are additional tabs that appear when you enable their context. For example, in word, when you select a table in your document, you get two additional tabs (Design and Layout) with commands relevant only to tables. The basic working unit is a TabGroup, which is a group of contextual tabs with the same context. A TabGroup has a property named ContextAvailable (Property Identifier: UI_PKEY_ContextAvailable) which can have the following...
2 comments

Windows Ribbon for WinForms, Part 16 – ApplicationModes

Windows Ribbon for WinForms library now supports Application Modes. The result of this post is a yet another sample, “13-ApplicationModes”, found on the project site. What are application modes? It is best to explain using examples. Applications some times have different “modes” in which they show different GUI, for example: Simple mode VS Advanced mode Regular editor mode VS Print mode The ribbon framework support changing its GUI according to the current application mode. In order to use the ribbon application modes you need to: Set the available application modes for each ribbon item. This is done in design...
no comments

Windows Ribbon for WinForms, Part 15 – Use Ribbon as External DLL

November 18, 2009

Using Windows Ribbon for WinForms just got a lot easier. Warning: Boring post. Talks about changes in the ribbon library and their reasons. But first, let me start by asking for your forgiveness. I’m trying to create a library which will be easy to use and so the last change to the library wasn’t backward compatible. Namely, classes names and interfaces have changed. Rest assured that every single change I made is making the library a little more easier to use. However, for all those who have started using the...

Windows Ribbon for WinForms, Part 14 – FontControl

November 14, 2009

Windows Ribbon for WinForms library now supports FontControl control. The result of this post is a yet another sample, “12-FontControl”, found on the project site.   FontControl Control FontControl is another special control provided by the Windows Ribbon Framework. It allows you to choose font family, size, colors and related effects. It has three types, each exposing a little more functionality then the other: Font Only Font With Color Rich Font Check Font Control on MSDN for full details on the differences between the types. FontControl Properties Following is the list of properties which are unique for FontControl control. The rest...

Windows Ribbon for WinForms, Part 13 – DropDownColorPicker

November 11, 2009

Windows Ribbon for WinForms library now supports DropDownColorPicker control. The result of this post is a yet another sample, “11-DropDownColorPicker”, found on the project site. DropDownColorPicker Control The drop down color picker looks like this:   DropDownColorPicker Properties Following is the list of properties which are unique for DropDownColorPicker control. The rest of the properties have been reviewed in previous posts. Color – The selected color. Property Identifier: UI_PKEY_Color...

Windows Ribbon for WinForms, Part 12 – CheckBox and ToggleButton

November 1, 2009

CheckBox and ToggleButton In short, I’ve added support for CheckBox and ToggleButton ribbon controls. A new sample, named “10-CheckBox” has been added to the project site. The result look like this: Using CheckBox and ToggleButton – Ribbon Markup Commands and Views sections: <?xml version='1.0' encoding='utf-8'?> <Application xmlns='http://schemas.microsoft.com/windows/2009/Ribbon'>   <Application.Commands>     <Command Name="cmdToggleButton"              Id="1002"              LabelTitle="Toggle Button">       <Command.LargeImages>         <Image>Res/Open32.bmp</Image>       </Command.LargeImages>       <Command.SmallImages>         <Image>Res/Open16.bmp</Image>       </Command.SmallImages>     </Command>     <Command Name="cmdCheckBox"              Id="1003"              LabelTitle="Check Box">       <Command.LargeImages>         <Image>Res/Save32.bmp</Image>       </Command.LargeImages>       <Command.SmallImages>         <Image>Res/Save16.bmp</Image>       </Command.SmallImages>     </Command>   </Application.Commands>   <Application.Views>...