Change the color of a ribbon window titlebar

Ribbon for WPF Forum

Posted 17 years ago by jfilla
Avatar
Hello,

I would like to change the color used on a RibbonWindow for its titlebar. Currently, I have the theme set to Office2007Black, and the WindowTitleBarApplicationNameForegroundActiveBrushKey is set to a sky blue. I would like to change this to a dark red for one of my windows. Is this possible with the theme framework? If so, could someone please provide a xaml or code snippet? Thanks

- jeff

Comments (2)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Sure, you could do something like this in the XAML of your RibbonWindow:
<ribbon:RibbonWindow 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
    xmlns:themes="http://schemas.actiprosoftware.com/winfx/xaml/themes"
    Icon="/Resources/Images/ActiproIcon.ico"
    WindowStartupLocation="CenterScreen"
    ApplicationName="Window that Inherits RibbonWindow" 
    DocumentName="Document1"
    >
    <ribbon:RibbonWindow.Resources>
        <SolidColorBrush x:Key="{x:Static themes:RibbonCommonDictionary.WindowTitleBarApplicationNameForegroundActiveBrushKey}" Color="#FF0000" />    
    </ribbon:RibbonWindow.Resources>
...


Actipro Software Support

Posted 17 years ago by jfilla
Avatar
Perfect, thank you very much.
The latest build of this product (v25.1.0) was released 30 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.