# DialogResult enumeration

Identifies the button a modal dialog or message box was closed with.

```csharp
public enum DialogResult
```

## Values

| name | value | description |
| --- | --- | --- |
| None | `0` | The dialog was dismissed without pressing any of its buttons, for example through the window caption button. This is also the value reported while the dialog is still open. |
| Ok | `1` | The user confirmed the dialog by pressing the OK button. |
| Cancel | `2` | The user dismissed the dialog by pressing the Cancel button. |
| Abort | `3` | The user pressed the Abort button, asking to stop the operation altogether. |
| Retry | `4` | The user pressed the Retry button, asking to attempt the failed operation again. |
| Ignore | `5` | The user pressed the Ignore button, asking to skip the problem and continue. |
| Yes | `6` | The user answered the question with the Yes button. |
| No | `7` | The user answered the question with the No button. |

## See Also

* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
