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