ContainerContentChangingEventArgs ContainerContentChangingEventArgs ContainerContentChangingEventArgs ContainerContentChangingEventArgs Class

Definition

Provides data for the ContainerContentChanging event.

public : sealed class ContainerContentChangingEventArgs : IContainerContentChangingEventArgspublic sealed class ContainerContentChangingEventArgs : IContainerContentChangingEventArgsPublic NotInheritable Class ContainerContentChangingEventArgs Implements IContainerContentChangingEventArgs// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

ContainerContentChangingEventArgs() ContainerContentChangingEventArgs() ContainerContentChangingEventArgs() ContainerContentChangingEventArgs()

Initializes a new instance of the ContainerContentChangingEventArgs class.

public : ContainerContentChangingEventArgs()public ContainerContentChangingEventArgs()Public Sub New()// This API is not available in Javascript.

Properties

Handled Handled Handled Handled

Gets or sets a value that marks the routed event as handled. A true value for Handled prevents most handlers along the event route from handling the same event again.

public : PlatForm::Boolean Handled { get; set; }public bool Handled { get; set; }Public ReadWrite Property Handled As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true to mark the routed event handled. false to leave the routed event unhandled, which permits the event to potentially route further and be acted on by other handlers. The default is false.

InRecycleQueue InRecycleQueue InRecycleQueue InRecycleQueue

Gets a value that indicates whether this container is in the recycle queue of the ListViewBase and is not being used to visualize a data item.

public : PlatForm::Boolean InRecycleQueue { get; }public bool InRecycleQueue { get; }Public ReadOnly Property InRecycleQueue As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true if the container is in the recycle queue of the ListViewBase; otherwise, false.

Remarks

You can check this property in a ContainerContentChanging event to determine if you should release references to the data item. If this property is true, ItemIndex is -1 and Item is null.

Item Item Item Item

Gets the data item associated with this container.

public : PlatForm::Object Item { get; }public object Item { get; }Public ReadOnly Property Item As object// This API is not available in Javascript.
Value
PlatForm::Object object object object

The data item associated with this container, or null if no data is associated with this container.

ItemContainer ItemContainer ItemContainer ItemContainer

Gets the UI container used to display the current data item.

public : SelectorItem ItemContainer { get; }public SelectorItem ItemContainer { get; }Public ReadOnly Property ItemContainer As SelectorItem// This API is not available in Javascript.
Value
SelectorItem SelectorItem SelectorItem SelectorItem

The UI container used to display the current data item.

Remarks

Use this container to visualize data.

ItemIndex ItemIndex ItemIndex ItemIndex

Gets the index in the ItemsSource of the data item associated with this container.

public : int ItemIndex { get; }public int ItemIndex { get; }Public ReadOnly Property ItemIndex As int// This API is not available in Javascript.
Value
int int int int

The index in the ItemsSource of the data item associated with this container. The default is -1.

Phase Phase Phase Phase

Gets the number of times this container and data item pair has been called.

public : unsigned int Phase { get; }public uint Phase { get; }Public ReadOnly Property Phase As uint// This API is not available in Javascript.
Value
unsigned int uint uint uint

The number of times this container and data item pair has been called.

Methods

RegisterUpdateCallback(UInt32, TypedEventHandler) RegisterUpdateCallback(UInt32, TypedEventHandler) RegisterUpdateCallback(UInt32, TypedEventHandler) RegisterUpdateCallback(UInt32, TypedEventHandler)

Registers the event handler to be called again during the specified phase.

public : void RegisterUpdateCallback(unsigned int callbackPhase, TypedEventHandler<ListViewBase, ContainerContentChangingEventArgs> callback)public void RegisterUpdateCallback(UInt32 callbackPhase, TypedEventHandler<ListViewBase, ContainerContentChangingEventArgs> callback)Public Function RegisterUpdateCallback(callbackPhase As UInt32, callback As TypedEventHandler<ListViewBase, ContainerContentChangingEventArgs>) As void// This API is not available in Javascript.
Parameters
callbackPhase
unsigned int UInt32 UInt32 UInt32

The phase during which the callback should occur.

See Also

RegisterUpdateCallback(TypedEventHandler) RegisterUpdateCallback(TypedEventHandler) RegisterUpdateCallback(TypedEventHandler) RegisterUpdateCallback(TypedEventHandler)

Registers the event handler to be called again during the next phase.

public : void RegisterUpdateCallback(TypedEventHandler<ListViewBase, ContainerContentChangingEventArgs> callback)public void RegisterUpdateCallback(TypedEventHandler<ListViewBase, ContainerContentChangingEventArgs> callback)Public Function RegisterUpdateCallback(callback As TypedEventHandler<ListViewBase, ContainerContentChangingEventArgs>) As void// This API is not available in Javascript.
Parameters
See Also