Skip to main content
All docs
V25.1
  • ChartCommandsBase.ExportToJpegCommand Property

    Specifies the command that invokes the Save As dialog to export the chart to a JPEG image.

    Namespace: DevExpress.Xpf.Charts

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

    NuGet Package: DevExpress.Wpf.Charts

    Declaration

    public ICommand ExportToJpegCommand { get; set; }

    Property Value

    Type Description
    ICommand

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

    Remarks

    The code below invokes the Save As dialog when a user clicks the Export to JPG button:

    <dxc:ChartControl x:Name="chart">
          <!--...-->
    </dxc:ChartControl>
    <dx:SimpleButton VerticalAlignment="Bottom" Width="120" Height="20" Content="Export to JPG" 
                     Command="{Binding Commands.ExportToJpegCommand, ElementName=chart}">
    </dx:SimpleButton>
    
    See Also