public sealed record DesktopMessageBoxButton : IEquatable<DesktopMessageBoxButton> A button of a DesktopMessageBox.
Parameters
IdThe application's identifier of the button; not empty and unique in its box.
LabelThe text shown, such as "Save"; not blank.
&and_are shown as written; setDesktopMessageBoxButton.AccessKeyfor an access key.
Constructors
DesktopMessageBoxButton
public DesktopMessageBoxButton(string Id, string Label) A button of a DesktopMessageBox.
Parameters
IdThe application's identifier of the button; not empty and unique in its box.
LabelThe text shown, such as "Save"; not blank.
&and_are shown as written; setDesktopMessageBoxButton.AccessKeyfor an access key.
Properties
AccessKey
public char? AccessKey { get; init; } A letter or digit that chooses the button with Alt (Windows, GTK), as DesktopMenuItem.AccessKey.
Remarks
The first letter of the label that matches it in any case is underlined; a label without it gets the key in parentheses after it, as for menu items. macOS has no access keys and ignores it.
Id
public string Id { get; init; } The application's identifier of the button; not empty and unique in its box.
Label
public string Label { get; init; } The text shown, such as "Save"; not blank. & and _ are shown as written; set DesktopMessageBoxButton.AccessKey for an access key.
Role
public DesktopMessageBoxButtonRole Role { get; init; } What the button does for the platform: whether Return or Esc choose it and how it is styled.