Friday, June 3, 2011
Due to popular demand I’ve decided to use the knowledge I’ve gain while creating the Windows Ribbon for WinForms project and write a series of posts about working with the Windows Ribbon Framework with Win32 C++.
In this post we will learn the basics of the Windows Ribbon Framework.
What Is a Ribbon?
Definition (from MSDN): “The Windows Ribbon framework is a rich command presentation system that provides a modern alternative to the layered menus, toolbars, and task panes of traditional Windows applications."
Put another way, it is the upper part of most office 2007 applications:
Figure 1: Microsoft Word 2007 RibbonThe ribbon...
Thursday, May 26, 2011
Recently I came across the need to customize the look of the standard message box in the application. To do this I’ve decided to create a new class named WPFMessageBox, which will have the same interface as the standard one, will behave the same way and finally would be fully customizable, the WPF way, using control templates. Following is the result of this effort. Note: In the image you can see an example for a message box customization. Of course you are limited only by your imagination. The default control template looks like the standard...
Wednesday, December 1, 2010
The other day I was teaching a WPF course when one of the students asked me where is the “Line” shape in the Visual Studio Toolbox. I approach to show him, only to find out that this control is indeed missing from the Visual Studio 2010 Toolbox. Even if you search the alleged “All WPF Controls” tab.. After a quick check I’ve found that this is not the only shape missing. The missing shapes are: Line, Path, Polygon, Polyline. And who knows which other controls are missing. Anyway, you can add...