private async void ShowModalInput(object sender, RoutedEventArgs e) { StringSchema schema = new StringSchema { Name = "Name", IconKind = PackIconKind.Account }; bool?result = await DialogFactory.FromSingleSchema("What is your name?", schema).Show("RootDialog", LargeModalWidth); if (result == true) { string name = schema.Value; await DialogFactory.Alert($"Hello {name}!").Show("RootDialog", ModalWidth); } }