private async void ShowContentDialogWithActionsButton_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e) { DialogActions.OkCancelButtons result = await ContentDialog.ShowWithActionEnum <DialogActions.OkCancelButtons>("ContentDialog with result", "This is a ContentDialog with a result value."); this.Find <TextBlock>("LastActionResultTextBlock").Text = "Last result text: " + result.ToString(); }