Skip to main content

How to: Bind a Numeric Chart Range Control Client to a List of Custom Objects

  • 2 minutes to read

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

        Title="MainWindow" Height="350" Width="525">
                    ItemsSource="{Binding}"  ArgumentDataMember="Argument"
                    GridSpacing="1" GridAlignment="1" >