콘텐츠로 이동

PlatformConventions class

이 콘텐츠는 아직 번역되지 않았습니다.

Platform-specific UI conventions: the primary command modifier, gesture display formatting, access-key support, and dialog button ordering. The default instance uses Windows/Linux conventions. The macOS platform overrides this at registration time.

public class PlatformConventions
name description
PlatformConventions() The default constructor.
static Current { get; set; } Gets or sets the current platform conventions. Defaults to Windows/Linux conventions. The macOS platform sets this during registration.
virtual EditLocationGestures { get; } The gestures that switch a location bar to text entry (Ctrl+L or Alt+D; Cmd+Shift+G on macOS).
virtual NavigateBackGesture { get; } The gesture that navigates back in history (Alt+Left; Cmd+Left on macOS).
virtual NavigateForwardGesture { get; } The gesture that navigates forward in history (Alt+Right; Cmd+Right on macOS).
virtual NavigateUpGesture { get; } The gesture that navigates to the parent container (Alt+Up; Cmd+Up on macOS).
virtual PrimaryModifier { get; } The platform’s primary command modifier: Ctrl on Windows/Linux, Cmd (Meta) on macOS.
virtual ReverseButtonOrder { get; } Whether the dialog button row is laid out in reverse of the standard order. Standard order places the primary action first; false on Windows/Linux, true on macOS.
virtual SupportsAccessKeys { get; } Whether Alt-based access keys (mnemonics) are supported on this platform. False on macOS where Option is used for special character input.
virtual FormatGesture(…) Formats a KeyGesture for display (e.g. “Ctrl+S”).
virtual FormatSequence(…) Formats a KeySequence for display (e.g. “Ctrl+K, Ctrl+I”).