Bagikan melalui


ItemsRepeaterElementIndexChangedEventArgs Kelas

Definisi

Menyediakan data untuk peristiwa ItemsRepeater.ElementIndexChanged.

public ref class ItemsRepeaterElementIndexChangedEventArgs sealed
/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Version(1)]
class ItemsRepeaterElementIndexChangedEventArgs final
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
class ItemsRepeaterElementIndexChangedEventArgs final
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Version(1)]
public sealed class ItemsRepeaterElementIndexChangedEventArgs
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public sealed class ItemsRepeaterElementIndexChangedEventArgs
Public NotInheritable Class ItemsRepeaterElementIndexChangedEventArgs
Warisan
Object Platform::Object IInspectable ItemsRepeaterElementIndexChangedEventArgs
Atribut
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute MarshalingBehaviorAttribute VersionAttribute ContractVersionAttribute

Contoh

Tip

Untuk informasi selengkapnya, panduan desain, dan contoh kode, lihat ItemsRepeater.

Aplikasi WinUI 3 Gallery mencakup contoh interaktif sebagian besar kontrol, fitur, dan fungsi WinUI 3. Dapatkan aplikasi dari Microsoft Store atau dapatkan kode sumber di GitHub.

Properti

Element

Dapatkan elemen yang indeksnya diubah.

NewIndex

Mendapatkan indeks elemen setelah perubahan.

OldIndex

Mendapatkan indeks elemen sebelum perubahan.

Berlaku untuk

Lihat juga