ContactPanelLaunchFullAppRequestedEventArgs Kelas

Definisi

Menyediakan informasi peristiwa untuk peristiwa LaunchFullAppRequested .

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
Warisan
Object Platform::Object IInspectable ContactPanelLaunchFullAppRequestedEventArgs
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 Creators Update (diperkenalkan dalam 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v4.0)
Kemampuan aplikasi
contactsSystem

Contoh

Contoh berikut mengilustrasikan keterangan dalam topik ini.

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();
        }
    }
}

Keterangan

Pertama, periksa untuk melihat properti Yang Ditangani adalah false. Kemudian, atur properti Ditangani ke true, dan mulai aplikasi Anda. Bergantung pada pengalaman seperti apa yang ingin Anda berikan kepada pengguna Anda, pertimbangkan untuk menutup Panel Kontak karena mereka akan berinteraksi langsung dengan versi lengkap aplikasi Anda.

Properti

Handled

Mendapatkan atau menetapkan nilai yang menunjukkan apakah peristiwa LaunchFullAppRequested telah ditangani.

Berlaku untuk