Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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