I would like to colorised the Window title bar of a XamRibbonWindow.
(http://imagizer.imageshack.us/a/img835/9102/pxdc.png)
In fact my final goal would be to have a window like this Exemple.png
(https://imagizer.imageshack.us/v2/1440x224q90/845/uihz.png)
Thanks for you help
Hello and thank you for posting!
After reviewing your requirements I have created a sample project for you to demonstrate how the caption and the border background colors could be modified using the default styles for the XamRibbon located at the Infragistics folder: http://es.infragistics.com/community/forums/t/89317.aspx.
In the RibbonWindowContentHost the Grid beckground property could be set to some value like this:
<igRibbon:RibbonWindowBorder BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Name="WindowBorder" />
<!--<igWindows:CardPanel>-->
<Grid Background="Red">
<Grid.RowDefinitions>
<RowDefinition Height="{Binding Path=ChildDesiredHeight, ElementName=ribbonSize}" />
<RowDefinition Height="*" />
<RowDefinition Height="{Binding Path=ChildDesiredHeight, ElementName=statusSize}" />
</Grid.RowDefinitions>
And in the XamRibbon style the PART_XamRibbonCaption Background property could be changed to some custom value:
<Border Background="Red" CornerRadius="3,3,0,0" Grid.ColumnSpan="3" x:Name="PART_XamRibbonCaption" Height="Auto" />
Please feel free to test the attached project and ask if you have any questions.
Thanks for your answer.
I forget to mention that I would like to have the Window with button like Office or Visual Studio (in Windows 7 also)
For this I set Theme="Office2013" on my Ribbon, but this override your change.
Have you an idea?