Hello Wei Wu,
We have included support for displaying SVG images. This is done via our RadSvgImage control and more information on it can be found at the following link:
WPF SvgImage - Overview - Telerik UI for WPF
The following code snippet shows a sample code using a RadButton and a RadSvgImage:
<telerik:RadButton Content="My Button"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<telerik:RadButton.ContentTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<telerik:RadSvgImage UriSource="MySVGImage.svg"
Width="16"
Height="16"/>
<TextBlock Text="{Binding}"
Grid.Column="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Grid>
</DataTemplate>
</telerik:RadButton.ContentTemplate>
</telerik:RadButton>
The produced result is as follows:
I hope the provided information will be of help to you.
Regards,
Stenly
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.