Skip to main content

ChartCommands.LoadFromFileCommand Property

Specifies the command that invokes the Open dialog to load the chart layout from an XML file.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

Declaration

public ICommand LoadFromFileCommand { 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="Load Chart" 
                 Command="{Binding Commands.LoadFromFileCommand, ElementName=chart}">
</dx:SimpleButton>
See Also