Windows Ribbon for WinForms, Part 11 – DropDownGallery, SplitButtonGallery and InRibbonGallery

October 27, 2009

In this post I'll show you how to use the different galleries available with the Windows Ribbon Framework. The result of this post is a new sample named “09-Galleries” that you can find on the Windows Ribbon for WinForms project page. It looks like this: Item Galleries vs. Command Galleries The galleries that we will soon review comes in two flavors: item galleries and command galleries. In this section will see what’s the difference between these two. Item Galleries ...

Windows Ribbon for WinForms, Part 10 – Working With Images

October 24, 2009

In this post we'll review the ribbon framework images terminology and see how to set images both statically and dynamically in your WinForms application. More details can be found at Specifying Ribbon Image Resources on MSDN. Large Images vs. Small Images Many ribbon controls allow you to specify an image. For example: Button, ComboBox, and Spinner. Most of these controls have two properties, one for a large image and one for small. The Ribbon framework will choose one of these sizes according to the available screen space...

Windows Ribbon for WinForms, Part 9 – Changing Ribbon Colors

October 22, 2009

Introduction to the feature The feature I want to talk about today is how to change the ribbon general colors. Note that you can’t change the colors of a specific ribbon item, only the entire ribbon. There are 3 colors we can change: Background Color Highlight Color Text Color Here is an example of a colored ribbon: How to do it? I’ve added a new method to the...

Windows Ribbon for WinForms, Part 8 – ComboBox

October 21, 2009

ComboBox Control A ribbon ComboBox control is basically the normal ComboBox control that we all love, but with the additional feature of dividing the items into categories. A category is not an item and cannot be selected from the ComboBox. It is only used to organized the items.   ComboBox Properties Every ribbon control has properties that defines the way it looks and behaves. Here is a quick review of ComboBox properties, divided into logical groups: ComboBox Value Related Properties ...

Windows Ribbon for WinForms, Part 7 – Spinner

October 17, 2009

Spinner Control A Spinner control is a control that represents a decimal value (like double, only with higher resolution). The control is composed of an edit box and two buttons, for increment and decrement. Let’s try the thing with the 1000 words: Spinner Properties Every ribbon control has properties that defines the way it looks and behaves. Here is a quick review of spinner properties, divided into logical groups: Spinner Value Related Properties ...
one comment

Setting Decimal value on PropVariant

October 16, 2009

PROPVARIANT is Important PROPVARIANT is an important COM structure that is used in many windows shell features like: Shell Namespace Extensions, Taskbar Jump List, Sensors and Windows Ribbon Framework, just to name a few. In order to use these shell features in managed code, one must provide a .NET wrapper for this struct. Now, you might have expected that if this struct is so important, there would be good .NET wrappers for it.. Unfortunately, this is not the case. The problem with this struct is that it is pretty...

Windows Ribbon for WinForms, Part 6 – Tabs, Groups and HelpButton

October 11, 2009

First, your should know that I changed my ribbon library such that Ribbon class is no longer a singleton. The reason is that I wanted to make an application with two forms, each form has its own ribbon, so needed two ribbon objects.. So this had to change. Second, in this post I’ll review some more common ribbon features, namely: Tabs Groups Help Button The result of this post is yet another sample application, named 04-TabGroupHelp. You can find...

How to convert an image to 32 bit BMP

October 4, 2009

BMP image format can be saved in several different pixel format. Some programs and APIs requires their resources to be in 32bit BMP. Unfortunately, Microsoft Paint support saving only 24bit BMPs. Since this issue is raised a lot when dealing with Windows Ribbon Framework I’ve decided to solve it once and for all. I’ve written a small console application that converts images into 32bit BMPs. you can get convert2bmp.exe here, under “Other Available Downloads”. Using the program convert2bmp <source> <target> for example: convert2bmp my24bit.BMP my32bit.BMP What the program...
5 comments

Windows Ribbon for WinForms, Part 5 – Application Menu with SplitButton and DropButton

October 2, 2009

Today I'll show you how to use the following ribbon features inside a Winforms application: Menu Group Split Button in an Application Menu Drop Down Button in an Application Menu The result of this post looks like this: SplitButton VS DropDownButton What is actually the difference between those two? DropDownButton is NOT a button, meaning clicking it does nothing. Hovering over it will open a list of...