Intersoft ClientUI Documentation
SelectionMode Property (UXChart)



Gets or sets a value that indicates the SelectionMode
Syntax
<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);
}
Remarks

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.

Example
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>     
Requirements

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

See Also

Reference

UXChart Class
UXChart Members

Send Feedback