Back to Devexpress

ChartBoundRangeControlClient Class

wpf-devexpress-dot-xpf-dot-charts-dot-rangecontrolclient-f1199c1a.md

latest4.7 KB
Original Source

ChartBoundRangeControlClient Class

The Chart Range Control Client that obtains data to visualize from the bound Chart Control.

Namespace : DevExpress.Xpf.Charts.RangeControlClient

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public class ChartBoundRangeControlClient :
    ChartRangeControlClientBase,
    IRangeControlClientExtension,
    IRangeControlClient,
    IWeakEventListener
vb
Public Class ChartBoundRangeControlClient
    Inherits ChartRangeControlClientBase
    Implements IRangeControlClientExtension,
               IRangeControlClient,
               IWeakEventListener

Remarks

The Chart Bound Range Control Client can only use a line chart to visualize the range control‘s data. Data is obtained from the bound chart’s main pane and primary axes. Multiple panes and secondary axes are not supported.

An example uses the following classes and members:

SymbolsDescription
ChartBoundRangeControlClientThe Chart Range Control Client that obtains data to visualize from the bound Chart Control.
ChartBoundRangeControlClient.ScaleOptionsGets or sets the scale options that configure grid appearance. This is a dependency property.
ScaleOptionsThe Chart bound Range Control scale options storage.
ScaleOptions.GridBehaviorGets or sets the behavior that specifies how the Chart bound Range Control Client forms its grid. This is a dependency property.
ScaleOptions.SnapBehaviorGets or sets the behavior that specifies how the Chart bound Range Control Client snaps its range bounds. This is a dependency property.

Refer to the Chart Clients for the Range Control: Chart Range Control Client bound to a Chart Control section for more information.

Example

The following code demonstrates how to configure the Chart Bound Range Control Client’s behavior:

xaml
<dxe:RangeControl AllowZoom="False">
    <dxcr:ChartBoundRangeControlClient Chart="{Binding ElementName=chart}" ThumbLabelFormatString="{}{0:dd MMM yyyy}">
        <dxcr:ScaleOptions LabelFormat="{}{0:MMM yyyy}">
            <dxcr:ScaleOptions.GridBehavior>
                <dxcr:ManualGridBehavior Alignment="Month" Spacing="20"/>
            </dxcr:ScaleOptions.GridBehavior>
            <dxcr:ScaleOptions.SnapBehavior>
                <dxcr:AutoSnapBehavior/>
            </dxcr:ScaleOptions.SnapBehavior>
        </dxcr:ScaleOptions>
    </dxcr:ChartBoundRangeControlClient>
</dxe:RangeControl>

Implements

IRangeControlClient

Inheritance

Show 11 items

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control ChartElementBase ChartElement ChartRangeControlClientBase ChartBoundRangeControlClient

See Also

ChartBoundRangeControlClient Members

DevExpress.Xpf.Charts.RangeControlClient Namespace