I am trying to find out if there is anyway to get the same theme that is applied to a Ribbon to also be applied to the status bar?
Is it possible or is this going to be a feature request?
DHU! If only I could read! I missed the .RIbbon This is much better "SWEET" :)
Sorry :(
You're putting the XamRibbon as the content. You need to set the RibbonWindowContentHost.Ribbon to the XamRibbon.
e.g.
<igRibbon:RibbonWindowContentHost.Ribbon>
<igRibbon:XamRibbon />
Ok, so I guess I am not understanding how this one is supposed to work. According to the documentation on this, the XAML code should merge the ribbon into the windows titlebar. I then added the status bar according to the documentation and this is the result. I updated the sample a little to include the a tab,group and a button that changes the theme.
Thanks for the quick reply.
Here is the code:
XAML
<igRibbon:XamRibbonWindow x:Class="Window2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window2" Height="300" Width="300">
<igRibbon:RibbonWindowContentHost>
<igRibbon:RibbonWindowContentHost.StatusBar>
<StatusBar Name="StatusBar1">
<TextBlock>This is the status bar</TextBlock>
</StatusBar>
</igRibbon:RibbonWindowContentHost.StatusBar>
<igRibbon:XamRibbon x:Name="ribbon" Theme="Office2k7Black">
<igRibbon:XamRibbon.Tabs>
<igRibbon:RibbonTabItem Header="Home">
<igRibbon:RibbonGroup Caption="Testing">
<igRibbon:ButtonTool x:Name="btnTest" Caption="Change Theme"/>
</igRibbon:RibbonGroup>
</igRibbon:RibbonTabItem>
</igRibbon:XamRibbon.Tabs>
</igRibbon:XamRibbon>
</igRibbon:XamRibbonWindow>
Code Behind
Select Case ribbon.Theme
Case "Office2k7Black"
ribbon.Theme = "Office2k7Blue"
Case "Office2k7Blue"
ribbon.Theme = "Office2k7Silver"
Case "Office2k7Silver"
ribbon.Theme = "Office2k7Black"
End Select
End Sub
I see. So you're not actually using a xamRibbon then. Well you could put the resource file into the window's resources.
Another way would be to include a xamRibbon but force it to be hidden:
I wonder if this is related to another support issue that I submitted earlier where the XamRibbonWindow does not work as described in the documentation.
Here is a sample that does not work for me: I am using VB so no code behind is required (according to the documentation and by looking at the Window2.g.vb file that was created)
<igRibbon:XamRibbon>