private void BtnShowOptions_Click(object sender, RoutedEventArgs e) { var res = OptionsDialog.Invoke("This is an example of an options dialog:", new string[] { "Option 1", "Option 2", "Option 3", "Option 4", "Option 5" }, MessageBoxImage.Question, "OptionsDialog Example"); if (res?.Count > 0) { string msg = "You selected "; foreach (string s in res) { msg += $"{s}, "; } msg = msg.Trim().TrimEnd(','); MessageDialog.ShowInfo(msg, "OptionsDialog Example"); } }