共用方式為


SelectionModel 類別

定義

/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Version(1)]
class SelectionModel : INotifyPropertyChanged
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
class SelectionModel : INotifyPropertyChanged
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
public class SelectionModel : INotifyPropertyChanged
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public class SelectionModel : INotifyPropertyChanged
Public Class SelectionModel
Implements INotifyPropertyChanged
繼承
Object IInspectable SelectionModel
屬性
實作

建構函式

SelectionModel()

屬性

AnchorIndex
SelectedIndex
SelectedIndices
SelectedItem
SelectedItems
SingleSelect
Source

方法

ClearSelection()
Deselect(Int32, Int32)
Deselect(Int32)
DeselectAt(IndexPath)
DeselectRange(IndexPath, IndexPath)
DeselectRangeFromAnchor(Int32, Int32)
DeselectRangeFromAnchor(Int32)
DeselectRangeFromAnchorTo(IndexPath)
IsSelected(Int32, Int32)
IsSelected(Int32)
IsSelectedAt(IndexPath)
OnPropertyChanged(String)
Select(Int32, Int32)
Select(Int32)
SelectAll()
SelectAt(IndexPath)
SelectRange(IndexPath, IndexPath)
SelectRangeFromAnchor(Int32, Int32)
SelectRangeFromAnchor(Int32)
SelectRangeFromAnchorTo(IndexPath)
SetAnchorIndex(Int32, Int32)
SetAnchorIndex(Int32)

事件

ChildrenRequested
PropertyChanged
SelectionChanged

適用於