Vixen
02b45cc4
csharp
public static class AccessKey

The marker convention for writing an access key into a label.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

_Save is Save with an access key of S, and __ is a literal underscore. Underscore rather than ampersand: this framework's labels arrive through markup, where & already means something, and every mistake with that convention is an entity that half-parses.

⚠ Nothing calls this automatically. Setting AccessKey is explicit, and a control that wanted Label = "_Save" to mean both the text and the key would have to strip the marker itself — which is a decision about every existing label in every application, not a helper. This is here so that the convention is written down once rather than in each caller that wants it.

Fields and properties (1)

  • public const char Marker

    The marker that precedes the access key in a label.

Methods (1)

  • public static string Parse(string? label, out char key)

    Pulls the access key out of a label and gives back the text to draw.

Used by (2)

  • AccessKeyTestsVixen.Ui.Tests
  • ButtonTestsVixen.Ui.Controls.Tests