Language

ListBox.SelectionMode Property

Definition

Gets or sets the selection behavior for a ListBox.

public:
 property System::Windows::Controls::SelectionMode SelectionMode { System::Windows::Controls::SelectionMode get(); void set(System::Windows::Controls::SelectionMode value); };
public System.Windows.Controls.SelectionMode SelectionMode { get; set; }
member this.SelectionMode : System.Windows.Controls.SelectionMode with get, set
Public Property SelectionMode As SelectionMode

Property Value

One of the SelectionMode values. The default is Single selection.

Examples

The following example sets the SelectionMode property to Multiple.


  
    
    CAT
  
  
    
    DOG
  
  
    
    FISH
  

Remarks

Dependency Property Information

Item Value
Identifier field SelectionModeProperty
Metadata properties set to true None

Applies to