Ribbon.QuickAccessToolBar & RibbonApplicationMenu Runtime DynamicResource not work

Aug 30, 2011 at 9:44 AM

Hi,

i'd like to use DynamicResource on QuickAccessToolBar and ApplicationMenu for image and Language translation. In DesignTime seems to work. In Runtime no.. Other ribbon's controls works well!

 	<ribbon:Ribbon x:Name="Ribbon" DockPanel.Dock="Top">

            <ribbon:Ribbon.ContextualTabGroups>
                <ribbon:RibbonContextualTabGroup Header="{DynamicResource ribbonContextualTabGroup}" Visibility="Visible" Background="Green" />
            </ribbon:Ribbon.ContextualTabGroups>

            <ribbon:Ribbon.QuickAccessToolBar>
                <ribbon:RibbonQuickAccessToolBar>
                    <ribbon:RibbonButton x:Name="QBtn1" SmallImageSource="{DynamicResource skippy}" Label="{DynamicResource ribbonButton}" />
                    <ribbon:RibbonButton x:Name="QBtn2" SmallImageSource="{DynamicResource skippy}" Label="{DynamicResource ribbonButton}" />
                    <ribbon:RibbonButton x:Name="QBtn3" SmallImageSource="{DynamicResource skippy}" Label="{DynamicResource ribbonButton}" />
                </ribbon:RibbonQuickAccessToolBar>
            </ribbon:Ribbon.QuickAccessToolBar>

            <ribbon:Ribbon.ApplicationMenu>
                <ribbon:RibbonApplicationMenu SmallImageSource="{DynamicResource skippy}">
                    <ribbon:RibbonApplicationMenuItem x:Name="MenuItem1" Header="{DynamicResource ribbonApplicationMenu}" ImageSource="{DynamicResource skippy}"/>
                    <ribbon:RibbonApplicationMenuItem x:Name="MenuItem2" Header="{DynamicResource ribbonApplicationMenu}" ImageSource="{DynamicResource skippy}"/>
                    <ribbon:RibbonApplicationMenuItem x:Name="MenuItem3" Header="{DynamicResource ribbonApplicationMenu}" ImageSource="{DynamicResource skippy}"/>
                    <ribbon:RibbonApplicationMenuItem x:Name="MenuItem4" Header="{DynamicResource ribbonApplicationMenu}" ImageSource="{DynamicResource skippy}"/>
                    <ribbon:RibbonApplicationMenuItem x:Name="MenuItem5" Header="{DynamicResource ribbonApplicationMenu}" ImageSource="{DynamicResource skippy}"/>
                </ribbon:RibbonApplicationMenu>
            </ribbon:Ribbon.ApplicationMenu>

            <ribbon:RibbonTab x:Name="Tab1"  Header="{DynamicResource ribbonTab}" ContextualTabGroupHeader="{DynamicResource ribbonContextualTabGroup}">
                <ribbon:RibbonGroup x:Name="Group1" Header="{DynamicResource ribbonGroup}">
                    <ribbon:RibbonButton x:Name="Button1" LargeImageSource="{DynamicResource skippy}" Label="{DynamicResource ribbonButton}" />
                    <ribbon:RibbonButton x:Name="Button2" SmallImageSource="{DynamicResource skippy}" Label="{DynamicResource ribbonButton}" />
                    <ribbon:RibbonButton x:Name="Button3" SmallImageSource="{DynamicResource skippy}" Label="{DynamicResource ribbonButton}" />
                    <ribbon:RibbonButton x:Name="Button4" SmallImageSource="{DynamicResource skippy}" Label="{DynamicResource ribbonButton}" />
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>

        </ribbon:Ribbon>
and the resources are added in App.xml file
<Application x:Class="WpfRibbonHost.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    
    <Application.Resources>
        
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Resources/Languages/lang.xaml" />
                <ResourceDictionary Source="Resources/Images/Vectors/images.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
        
    </Application.Resources>
    
</Application>
some ideas? 
thanks