ContactPanelLaunchFullAppRequestedEventArgs Class

Definition

Provides event information for the LaunchFullAppRequested event.

public ref class ContactPanelLaunchFullAppRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ContactPanelLaunchFullAppRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ContactPanelLaunchFullAppRequestedEventArgs
Public NotInheritable Class ContactPanelLaunchFullAppRequestedEventArgs
Inheritance
Object Platform::Object IInspectable ContactPanelLaunchFullAppRequestedEventArgs
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
contactsSystem

Examples

The following example illustrates the remarks in this topic.

async void OnLaunchFullAppRequested(ContactPanel ContactPanel,
                                    ContactPanelLaunchFullAppRequestedEventArgs e)
{
    if (!e.Handled)
    {
        e.Handled = true;
        if (await TryLaunchFullAppFromCurrentStateAsync())
        {
            // we've successfully started the full version of our app; close the hosted view.
            ContactPanel.ClosePanel();
        }
    }
}

Remarks

First, check to see the Handled property is false. Then, set the Handled property to true, and start your app. Depending on what sort of experience you want to provide your users, consider closing the Contact Panel because they’ll be interacting directly with the full version of your app.

Properties

Handled

Gets or sets a value that indicates whether the LaunchFullAppRequested event has been handled.

Applies to