Intersoft.Client.UI.DataVisualization Namespace > UXChart Class : SelectionMode Property |
<CategoryAttribute("Common Properties")> Public Property SelectionMode As SeriesSelectionMode
Dim instance As UXChart Dim value As SeriesSelectionMode instance.SelectionMode = value value = instance.SelectionMode
[CategoryAttribute("Common Properties")] public SeriesSelectionMode SelectionMode {get; set;}
[CategoryAttribute("Common Properties")] public: property SeriesSelectionMode SelectionMode { SeriesSelectionMode get(); void set ( SeriesSelectionMode value); }
Selection in UXChart can be enabled by setting the CanUserSelect property to True. You can also control the selection individually in each series, by setting the same property that available in each series types.CanUserSelect property in each series has higher precedence than CanUserSelect property in UXChart. If you do not set the property in each series, it will use the one specified in UXChart , on contrary in you set the CanUserSelect property in the series it will override the one specified in UXChart .
There are six selection modes that you can choose from.
User can select only one data point at a time across all series
User can select multiple data point across all series using Ctrl Modifier.
User can select multiple data point across all series.
User can select one data point at a time per each series. In other words you might see multiple items selected across all series, but each series will have only one item selected at a time.
User can select multiple data point per same series by using Ctrl Modifier. Whenever user select a data point from other series, the selection on the previous series will be cleared.
User can select multiple data point per same series by using Ctrl Modifier. Whenever user select a data point from other series, the selection on the previous series will be cleared.
XAML |
Copy Code
|
---|---|
<Intersoft:UXChart Title="Monthly Sunshine Hours in Melbourne" CanUserSelect="True" SelectedItem="{Binding ChartSelectedItem, Mode=TwoWay}" SelectedItems="{Binding ChartSelectedItems, Mode=TwoWay}" SelectionMode="Single"> <Intersoft:UXChart.Series> <Intersoft:ColumnSeries Title="Melbourne" SelectedItem="{Binding MelbourneSeriesSelectedItem, Mode=TwoWay}" SelectedItems="{Binding MelbourneSeriesSelectedItems, Mode=TwoWay}" ItemsSource="{Binding Melbourne}" IndependentValueBinding="{Binding Month}" DependentValueBinding="{Binding SunshineHours}" /> <Intersoft:ColumnSeries Title="Sydney" SelectedItem="{Binding SydneySeriesSelectedItem, Mode=TwoWay}" SelectedItems="{Binding SydneySeriesSelectedItems, Mode=TwoWay}" ItemsSource="{Binding Sydney}" IndependentValueBinding="{Binding Month}" DependentValueBinding="{Binding SunshineHours}" /> </Intersoft:UXChart.Series> </Intersoft:UXChart> |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2