We have received a query about being able to hide the title panel in a Ribbon Browser Application. As always this can be achieved by finding the appropriate element within the Ribbon template and manipulating its Visibility. The attached project demonstrates this approach.
Post by this author
We have received some feedback about the blurriness of the images in the Ribbon sample that was published alongside the Ribbon release. We would like to clarify that the sole purpose of this sample application is to showcase the API capabilities for the Ribbon Control Library.
It has been reported that when using an icon file as RibbonWindow.Icon, the icon is rendered blurry due to bitmap scaling. The reason for this issue is the inherent behavior of WPF Image element to simply display the first decoded bitmap frame within an icon file instead of picking the best match in terms of resolution.
Here are couple of scenarios that can be improved.
The contents of the QuickAccessToolBar show far too low within the title area of the window.
It is preferable that the left and right separators for a RibbonQuickAccessToolBar not show if this ToolBar is empty.
It has been reported that when using a Ribbon hosted in a RibbonWindow in an application targeting .Net 4.0, the SystemMenu does not show in the correct location. See screenshot below.
Please note that this bug does not exist when targetting .Net 3.5.
RibbonGallery is a new metaphor introduced as part of the Ribbon UI. It is a control that visualizes a list of RibbonGalleryItems that are grouped into RibbonGalleryCategories. RibbonGallery is typically used to visualize a set of related choices that are best expressed visually.
There are six properties on each Ribbon control that enable creation of rich ToolTips such as the one shown below.
The use of any of these six properties causes a RibbonToolTip instance to be created and used as the ToolTip for the Ribbon control.
RibbonWindow is a subclass of the regular WPF Window that provides additional services to be able to integrate Ribbon components with the Window Chrome. To demonstrate this use the sample application from the previous post.
Right-click the Format Painter button within the Clipboard Group
Choose Add to QuickAccessToolBar option
Notice that the Button shows in the title row for the Window.
The recommended way to bind the Ribbon UI to a data model is to encapsulate the command and the state associated with each control into a data object that is used as the DataContext for that control. You can then apply an implicit Style to the control that binds individual properties on it to corresponding properties of the data object.
To add more content to the Simple Ribbon Application that we created in the previous post, you can drag-drop variety of elements from the VS toolbox onto the Ribbon.
Drag RibbonGroup to the Home Tab and name it Group2.
Drag three RibbonCheckBox controls to Group2 and set the SmallImageSource property on each using the property inspector.