Skip to main content
A newer version of this page is available. .

ChartCommands.DrawTrendLineIndicatorCommand Property

Specifies the command that activates the mode of drawing a Trend Line.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

Declaration

public ICommand DrawTrendLineIndicatorCommand { get; set; }

Property Value

Type Description
ICommand

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

Remarks

The following code activates the Trend Line indicator’s drawing mode when a user clicks the Draw Trend Line button:

<dxc:ChartControl x:Name="chart">
    <!--...-->
</dxc:ChartControl>
<dx:SimpleButton VerticalAlignment="Bottom" Height="40" Content="Draw Trend Line" 
                 Command="{Binding Commands.DrawTrendLineIndicatorCommand, ElementName=chart}">
</dx:SimpleButton>
See Also