ContainerContentChangingEventArgs 类

定义

提供 ContainerContentChanging 事件的数据。

public ref class ContainerContentChangingEventArgs sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ContainerContentChangingEventArgs final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class ContainerContentChangingEventArgs final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ContainerContentChangingEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ContainerContentChangingEventArgs
Public NotInheritable Class ContainerContentChangingEventArgs
继承
Object Platform::Object IInspectable ContainerContentChangingEventArgs
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

构造函数

ContainerContentChangingEventArgs()

初始化 ContainerContentChangingEventArgs 类的新实例。

属性

Handled

获取或设置一个值,该值将路由事件标记为已处理。 Handled 的 true 值可防止事件路由中的大多数处理程序再次处理同一事件。

InRecycleQueue

获取一个值,该值指示此容器是否位于 ListViewBase 的回收队列中,并且未用于可视化数据项。

Item

获取与此容器关联的数据项。

ItemContainer

获取用于显示当前数据项的 UI 容器。

ItemIndex

获取与此容器关联的数据项的 ItemsSource 中的索引。

Phase

获取调用此容器和数据项对的次数。

方法

RegisterUpdateCallback(TypedEventHandler<ListViewBase,ContainerContentChangingEventArgs>)

注册要在下一阶段再次调用的事件处理程序。

RegisterUpdateCallback(UInt32, TypedEventHandler<ListViewBase,ContainerContentChangingEventArgs>)

注册在指定阶段再次调用的事件处理程序。

适用于

另请参阅