Skip to main content

ChartCommands.SaveToFileCommand Property

Specifies the command that invokes the Save As dialog to save the chart layout to an XML file.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.1.dll

NuGet Package: DevExpress.Wpf.Charts

Declaration

public ICommand SaveToFileCommand { get; set; }

Property Value

Type Description
ICommand

An object that defines a command that implements the ICommand interface.

Remarks

The following code shows how to invoke the Open dialog used to load a chart’s layout from an XML file:

<dxc:ChartControl x:Name="chart">
  <!--...-->
</dxc:ChartControl>
<dx:SimpleButton VerticalAlignment="Bottom" Width="100" Height="50" Content="Save Chart" 
                 Command="{Binding Commands.SaveToFileCommand, ElementName=chart}">
</dx:SimpleButton>
See Also