Esempio n. 1
0
        protected async override void ShowOutcomeText(OutcomeTextViewModel text)
        {
            try
            {
                var dialog = new ContentDialog()
                {
                    Content = new OuputText()
                    {
                        BindingContext = text,
                    }
                };
                dialog.AddButton(new ContentDialogButton()
                {
                    Icon = Icons.TimesCircleRegular, Color = Color.White, Result = AddEditItemResult.Cancel, IsBack = true,
                });
                dialog.Show();
                await dialog.Wait();

                await Navigation.PopModalAsync();
            }
            catch (Exception e)
            {
                HandleError(e);
            }
        }