ListBox.SelectionMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
<ListBox SelectionMode="Multiple">
<DockPanel>
<Image Source="data\cat.png"/>
<TextBlock>CAT</TextBlock>
</DockPanel>
<DockPanel>
<Image Source="data\dog.png"/>
<TextBlock>DOG</TextBlock>
</DockPanel>
<DockPanel>
<Image Source="data\fish.png"/>
<TextBlock>FISH</TextBlock>
</DockPanel>
</ListBox>
Remarks
Dependency Property Information
Identifier field | SelectionModeProperty |
Metadata properties set to true |
None |
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.