A newer version of this page is available. Switch to the current version.

ChartRangeControlClient.ArgumentDataMember Property

Gets or sets the name of the data field that contains the chart client’s point arguments.

Namespace: DevExpress.Xpf.Charts.RangeControlClient

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

Declaration

public string ArgumentDataMember { get; set; }

Property Value

Type Description
String

A String value that specifies the data field name.

Remarks

Use the ArgumentDataMember property to specify the bound data source’s data field from which the chart client obtains the arguments of its points.

Example

This example shows how to bind a numeric chart range control client to a System.Collections.Generic.List containing NumericItem objects.

Each NumericItem object contains Argument and Value properties, to which a numeric chart range control client is bound via its ChartRangeControlClient.ArgumentDataMember and ChartRangeControlClient.ValueDataMember properties.

Note that the numeric chart client sorts data from a list of NumericItem objects by arguments in ascending order (when the ChartRangeControlClient.ArgumentDataMember property is specified). If you wish to see data in the order in which points have been added to the list, do not use the ChartRangeControlClient.ArgumentDataMember property.

See also:

View Example

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" 
        xmlns:Custom="http://schemas.devexpress.com/winfx/2008/xaml/charts/rangecontrolclient" 
        x:Class="BindNumericChartClientToItemList.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <dxe:RangeControl>
            <dxe:RangeControl.Client>
                <Custom:NumericChartRangeControlClient
                    ItemsSource="{Binding}"  ArgumentDataMember="Argument"
                    ValueDataMember="Value"
                    GridSpacing="1" GridAlignment="1" >
                </Custom:NumericChartRangeControlClient>
            </dxe:RangeControl.Client>
        </dxe:RangeControl>
    </Grid>
</Window>
See Also