Пример #1
0
 private async void Confirmation_Executed()
 {
     confirmed = await ModalView.ConfirmationDialogAsync(
         "What's the status of Schrödinger's cat?",
         "Alive",
         "Dead",
         "Both"
         );
 }
Пример #2
0
        private async void Confirmation2Buttons_Executed()
        {
            Debug.WriteLine("2-State Confirmation Dialog will be opened.");
            confirmed = await ModalView.ConfirmationDialogAsync(
                "Are you planning to open the box?",
                "Sure",
                "No, thanks"
                );

            Debug.WriteLine("2-State Confirmation Dialog was closed with {0}.", confirmed);
        }
Пример #3
0
        private async void Confirmation3Buttons_Executed()
        {
            Debug.WriteLine("3-State Confirmation Dialog will be opened.");
            confirmed = await ModalView.ConfirmationDialogAsync(
                "So, what's the status of the cat?\nHint: use Quantum Mechanics.",
                "It's alive",
                "It's dead",
                "It's both"
                );

            Debug.WriteLine("3-State Confirmation Dialog was closed with {0}.", confirmed);
        }