Category / Section
How to export a chart as an image?
1 min read
A chart can be exported to an image format by using the Command and CommandTarget properties.
The following code is used to export a chart to an image format.
XAML
<Button Content="Save" Command="{x:Static ApplicationCommands.Save}" CommandTarget="{Binding ElementName=Chart1}" Height="25" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center"/>