Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
Colorised the Window title bar of a XamRibbonWindow.
posted

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

Parents
  • 17475
    Verified Answer
    Offline posted

    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.

    XamRibbonWindowTheme.zip
Reply Children