I am building a solution with multiple front-end clients and wish to maintain a consistent Look&Feel between them. For this I have created a shared Silverlight library which contains common resources including all images/icons. I have declared a resource dictionary in this project which I then merge into the other client projects in the root visual. I have used this successfully to add image to a RadButton as follows:
Now I also want to use these images as icons for RadOutlookBarItem but I am struggling to find the right syntax (assuming that it is possible)
<
ResourceDictionary
xmlns:x
=
"http://schemas.microsoft.com/winfx/2006/xaml"
>
<
ImageSource
x:Key
=
"HomeIcon"
>Images/house_16xLG.png</
ImageSource
>
</
ResourceDictionary
>
<
telerik:RadButton.Content
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"{StaticResource HomeIcon}"
Margin
=
"3"
Stretch
=
"None"
VerticalAlignment
=
"Center"
/>
<
TextBlock
Text
=
"Home"
VerticalAlignment
=
"Center"
Margin
=
"3"
/>
</
StackPanel
>
</
telerik:RadButton.Content
>
Now I also want to use these images as icons for RadOutlookBarItem but I am struggling to find the right syntax (assuming that it is possible)