ListView.SetSelectionMode Method
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.
Overloads
| SetSelectionMode(BindableObject, ListViewSelectionMode) |
Obsolete.
Sets the selection mode for the element. |
| SetSelectionMode(IPlatformElementConfiguration<Windows,ListView>, ListViewSelectionMode) |
Obsolete.
Sets the selection mode for the element. |
SetSelectionMode(BindableObject, ListViewSelectionMode)
- Source:
- ListView.cs
- Source:
- ListView.cs
- Source:
- ListView.cs
Caution
With the deprecation of ListView, this property is obsolete. Please use CollectionView instead.
Sets the selection mode for the element.
public:
static void SetSelectionMode(Microsoft::Maui::Controls::BindableObject ^ element, Microsoft::Maui::Controls::PlatformConfiguration::WindowsSpecific::ListViewSelectionMode value);
[System.Obsolete("With the deprecation of ListView, this property is obsolete. Please use CollectionView instead.")]
public static void SetSelectionMode(Microsoft.Maui.Controls.BindableObject element, Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific.ListViewSelectionMode value);
public static void SetSelectionMode(Microsoft.Maui.Controls.BindableObject element, Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific.ListViewSelectionMode value);
[<System.Obsolete("With the deprecation of ListView, this property is obsolete. Please use CollectionView instead.")>]
static member SetSelectionMode : Microsoft.Maui.Controls.BindableObject * Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific.ListViewSelectionMode -> unit
static member SetSelectionMode : Microsoft.Maui.Controls.BindableObject * Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific.ListViewSelectionMode -> unit
Public Sub SetSelectionMode (element As BindableObject, value As ListViewSelectionMode)
Parameters
- element
- BindableObject
The element whose selectio mode to set.
- value
- ListViewSelectionMode
The new selection mode value.
- Attributes
Applies to
SetSelectionMode(IPlatformElementConfiguration<Windows,ListView>, ListViewSelectionMode)
- Source:
- ListView.cs
- Source:
- ListView.cs
- Source:
- ListView.cs
Caution
With the deprecation of ListView, this property is obsolete. Please use CollectionView instead.
Sets the selection mode for the element.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Windows ^, Microsoft::Maui::Controls::ListView ^> ^ SetSelectionMode(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Windows ^, Microsoft::Maui::Controls::ListView ^> ^ config, Microsoft::Maui::Controls::PlatformConfiguration::WindowsSpecific::ListViewSelectionMode value);
[System.Obsolete("With the deprecation of ListView, this property is obsolete. Please use CollectionView instead.")]
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows,Microsoft.Maui.Controls.ListView> SetSelectionMode(this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows,Microsoft.Maui.Controls.ListView> config, Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific.ListViewSelectionMode value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows,Microsoft.Maui.Controls.ListView> SetSelectionMode(this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows,Microsoft.Maui.Controls.ListView> config, Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific.ListViewSelectionMode value);
[<System.Obsolete("With the deprecation of ListView, this property is obsolete. Please use CollectionView instead.")>]
static member SetSelectionMode : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows, Microsoft.Maui.Controls.ListView> * Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific.ListViewSelectionMode -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows, Microsoft.Maui.Controls.ListView>
static member SetSelectionMode : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows, Microsoft.Maui.Controls.ListView> * Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific.ListViewSelectionMode -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows, Microsoft.Maui.Controls.ListView>
<Extension()>
Public Function SetSelectionMode (config As IPlatformElementConfiguration(Of Windows, ListView), value As ListViewSelectionMode) As IPlatformElementConfiguration(Of Windows, ListView)
Parameters
The element whose selectio mode to set.
- value
- ListViewSelectionMode
The new selection mode value.
Returns
- Attributes