-api-id | -api-type |
---|---|
T:Windows.ApplicationModel.Contacts.ContactPanelLaunchFullAppRequestedEventArgs |
winrt class |
Provides event information for the LaunchFullAppRequested event.
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.
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();
}
}
}
contactsSystem