ApplicationViewConsolidatedEventArgs ApplicationViewConsolidatedEventArgs ApplicationViewConsolidatedEventArgs ApplicationViewConsolidatedEventArgs ApplicationViewConsolidatedEventArgs Class

Definition

Contains the results of a window (app view) consolidation operation.

public : sealed class ApplicationViewConsolidatedEventArgs : IApplicationViewConsolidatedEventArgs, IApplicationViewConsolidatedEventArgs2
struct winrt::Windows::UI::ViewManagement::ApplicationViewConsolidatedEventArgs : IApplicationViewConsolidatedEventArgs, IApplicationViewConsolidatedEventArgs2
public sealed class ApplicationViewConsolidatedEventArgs : IApplicationViewConsolidatedEventArgs, IApplicationViewConsolidatedEventArgs2
Public NotInheritable Class ApplicationViewConsolidatedEventArgs Implements IApplicationViewConsolidatedEventArgs, IApplicationViewConsolidatedEventArgs2
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Your app receives this class in its Consolidated event handler.

Note

: This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX).

Properties

IsAppInitiated IsAppInitiated IsAppInitiated IsAppInitiated IsAppInitiated

Gets a value that indicates whether the window consolidation was app-initiated.

public : Platform::Boolean IsAppInitiated { get; }
bool IsAppInitiated();
public bool IsAppInitiated { get; }
Public ReadOnly Property IsAppInitiated As bool
var bool = applicationViewConsolidatedEventArgs.isAppInitiated;
Value
bool bool bool

true if the window consolidation operation was app-initiated; otherwise false.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

This property is true if the window consolidation was due to a call to ApplicationView.TryConsolidateAsync. Otherwise, window consolidation could be system-initiated or user-initiated.

IsUserInitiated IsUserInitiated IsUserInitiated IsUserInitiated IsUserInitiated

Gets a value that indicates whether the window consolidation was user-initiated.

public : Platform::Boolean IsUserInitiated { get; }
bool IsUserInitiated();
public bool IsUserInitiated { get; }
Public ReadOnly Property IsUserInitiated As bool
var bool = applicationViewConsolidatedEventArgs.isUserInitiated;
Value
bool bool bool

true if the window consolidation operation was user-initiated; otherwise, false.

Remarks

This property is true if the window consolidation was due to the user performing a close gesture. Otherwise, windows consolidation could be system-initiated or app-initiated (by a call to ApplicationView.TryConsolidateAsync ).