Intersoft ClientUI Documentation
ISSelectionControl Class
Members 



Serves as the base class for all Intersoft Selection controls.
Object Model
ISSelectionControl ClassISFramework ClassStyleSelector ClassDataTemplateSelector Class
Syntax
Public MustInherit Class ISSelectionControl 
   Inherits ISItemsControl
   Implements IControlIFrameworkIItemsControlISelection 
Dim instance As ISSelectionControl
public abstract class ISSelectionControl : ISItemsControl, IControlIFrameworkIItemsControlISelection  
public ref class ISSelectionControl abstract : public ISItemsControl, IControlIFrameworkIItemsControlISelection  
Remarks

ISSelection control is base class for all ClientUI selection control. This type of control has properties that indicate the current selection such as SelectedIndex, SelectedItem, SelectedValue, SelectedValuePath, SelectedElement which you can bind to a DataContext or using MVVM pattern. To learn more about using MVVM pattern, see MVVM Pattern Overview.

Any changes to one of the properties means that the current selection has changed, and it will synchronize the UI and other related properties automatically.

The base class for selection controls in ClientUI is ISSelectionControl which implements ISelection interface.

The following example shows how these properties working together.

XAML
Copy Code
<Intersoft:DockPanel HorizontalAlignment="Center" VerticalAlignment="Center">
        <Intersoft:UXListBox x:Name="ListBox1" HorizontalAlignment="Center" VerticalAlignment="Center">
                <Intersoft:UXListBoxItem Content="Item #1"/>
                <Intersoft:UXListBoxItem Content="Item #2"/>
                <Intersoft:UXListBoxItem Content="Item #3"/>
                <Intersoft:UXListBoxItem Content="Item #4"/>
        </Intersoft:UXListBox>
        <Intersoft:FieldLabel Intersoft:DockPanel.Dock="Top" Header="SelectedIndex">
                <TextBlock Text="{Binding SelectedIndex, ElementName=ListBox1}" Margin="4"/>
        </Intersoft:FieldLabel>
        <Intersoft:FieldLabel Intersoft:DockPanel.Dock="Top" Header="SelectedItem">
                <TextBlock Text="{Binding SelectedItem.Content, ElementName=ListBox1}" Margin="4"/>
        </Intersoft:FieldLabel>
        <Button Intersoft:DockPanel.Dock="Top" Content="Set SelectedIndex = 2" Margin="4" Click="Button_Click"/>          
</Intersoft:DockPanel>
C#
Copy Code
private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
{
        this.ListBox1.SelectedIndex = 2;
}

This sample demonstrates that whenever you change the selection, the SelectedIndex and SelectedItem properties are synchronized automatically and vice versa. When these properties are changed, the UI of the selection control will be updated as well.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ItemsControl
                  Intersoft.Client.Framework.ISItemsControl
                     Intersoft.Client.Framework.ISSelectionControl
                        Intersoft.Client.Framework.ISMultipleSelectionControl
                        Intersoft.Client.UI.Aqua.UXCollection.UXComboBox
                        Intersoft.Client.UI.Aqua.UXCollection.UXSelector
                        Intersoft.Client.UI.Aqua.UXFlow.UXFlow
                        Intersoft.Client.UI.Aqua.UXMenuBase
                        Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonBar
                        Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGallery
                        Intersoft.Client.UI.Controls.Interactivity.ISDragableSelectionControl
                        Intersoft.Client.UI.Data.SelectionInputControl
                        Intersoft.Client.UI.Editors.UXPropertyList
                        Intersoft.Client.UI.Navigation.UXBreadCrumbBox
                        Intersoft.Client.UI.Navigation.UXTabControl

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

ISSelectionControl Members
Intersoft.Client.Framework Namespace

Concepts

Items Control Overview

Send Feedback