Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.ListBox Assembly / Xceed.Wpf.ListBox Namespace / ListBox Class / SelectionMode Property


In This Topic
    SelectionMode Property (ListBox)
    In This Topic
    Gets or sets a value indicating how the items in a listbox are selected at run time.
    Syntax
    'Declaration
     
    Public Property SelectionMode As SelectionMode
    'Usage
     
    Dim instance As ListBox
    Dim value As SelectionMode
     
    instance.SelectionMode = value
     
    value = instance.SelectionMode
    public SelectionMode SelectionMode {get; set;}

    Property Value

    A SelectionMode value indicating how the items in a listbox are selected at run time. By default, SelectionMode.Single.

    If set to Single, only one item can be selected at a time. If set to Multiple, multiple items can be selected without pressing a modifier key. If set to Extended, multiple items can be selected but only if a modifier key is pressed.

    Requirements

    Target Platforms: Windows 11, Windows 10, 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