This is a migrated thread and some comments may be shown as answers.

Application Button Image Won't Display

1 Answer 90 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Kelly
Top achievements
Rank 1
Kelly asked on 16 Nov 2011, 12:23 AM
Hello,

I've tried every way I can think of to set an application button image. In all cases, my image is displayed correctly in the xaml designer, but will not display at run time. I've tried hard-coding ApplicationButtonImageSource, binding it, and my most recent attempt uses AplicationButtonContent and looks like this:

<telerik:RadRibbonView x:Name="Ribbon" Grid.Row="0" Title="{Binding CurrentView.Title}" ApplicationName="{Binding AppName}">
    <telerik:RadRibbonView.ApplicationButtonContent>
        <Image Source="/AttnHistory;component/Images/Warning32.png"/>
    </telerik:RadRibbonView.ApplicationButtonContent>
    <telerik:RadRibbonView.Backstage>
        <telerik:RadRibbonBackstage>
            <telerik:RadRibbonBackstageItem Header="New View" Command="{Binding NewButton}" IsSelectable="False" Icon="/AttnHistory;component/Images/Ribbon/page_add.png"/>
            <telerik:RadRibbonBackstageItem Header="Open View" IsDefault="True">
                <StackPanel Margin="15 15 0 0">
                    <TextBlock Text="Stored Views" FontSize="14" FontWeight="Bold" Margin="0 0 0 2" />
                    <Rectangle Height="1" Fill="{StaticResource DottedLineBrush}" />
                    <ItemsControl ItemsSource="{Binding StoredViews}" Margin="0 4 0 0" ItemTemplate="{StaticResource StoredViewTemplate}"/>
                </StackPanel>
            </telerik:RadRibbonBackstageItem>
        </telerik:RadRibbonBackstage>
    </telerik:RadRibbonView.Backstage>
</telerik:RadRibbonView>

This, too, results in an empty tab. No doubt I'm missing something simple.  I noticed that your RibbonView Word demo uses both ApplicationButtonImageSource and ApplicationButtonContent, and only the image is displayed. When I set both properties, only the ApplicationButtonContent is displayed. I'm using version 2011.2.920.1040 of RibbonView.

Thank you,
KO

1 Answer, 1 is accepted

Sort by
0
Kelly
Top achievements
Rank 1
answered on 17 Nov 2011, 07:35 PM
Ooops, never mind. This was user error, not a RibbonView problem. Thank you!
Tags
RibbonView and RibbonWindow
Asked by
Kelly
Top achievements
Rank 1
Answers by
Kelly
Top achievements
Rank 1
Share this question
or