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:
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
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