次の方法で共有


ItemsView.CurrentItemIndex プロパティ

定義

フォーカスがある場合は、最後の項目のインデックスを取得します。

public:
 property int CurrentItemIndex { int get(); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")]
int CurrentItemIndex();
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")]
public int CurrentItemIndex { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="-1")] get; }
var int32 = itemsView.currentItemIndex;
Public ReadOnly Property CurrentItemIndex As Integer

プロパティ値

Int32

int

フォーカスのある最後の項目のインデックス。または、現在の項目がない場合は -1。データ収集が空であるか、コントロールにフォーカスがない場合に発生します。

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

適用対象