From fb6763d566e5db5f1413abf0499469c4bcd174f3 Mon Sep 17 00:00:00 2001 From: WillisXue Date: Fri, 1 Dec 2023 12:50:07 +0800 Subject: [PATCH] allow users to change menu show delay (#13752) --- src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs b/src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs index 8f1b9dfd22..2369c1f983 100644 --- a/src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs +++ b/src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs @@ -49,7 +49,7 @@ namespace Avalonia.Controls.Platform internal IMenu? Menu { get; private set; } - protected static TimeSpan MenuShowDelay { get; } = TimeSpan.FromMilliseconds(400); + public static TimeSpan MenuShowDelay { get; set;} = TimeSpan.FromMilliseconds(400); protected internal virtual void GotFocus(object? sender, GotFocusEventArgs e) {