From 3d45d782f168295e51ef6db6fd6d6a14aeb0bda6 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 6a76855d85..6fb0f89221 100644 --- a/src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs +++ b/src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs @@ -48,7 +48,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) {