From fd3231131070b77dcceccf553f518b7c3bcb9ba3 Mon Sep 17 00:00:00 2001 From: maunv <48544354+MauNguyenVan@users.noreply.github.com> Date: Mon, 24 Jun 2024 18:31:37 +0700 Subject: [PATCH] Supported MouseAction.None in xaml (#8871) --- .../System/Windows/Input/Command/MouseActionConverter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseActionConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseActionConverter.cs index 6a9610bb951..a94410caced 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseActionConverter.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MouseActionConverter.cs @@ -86,6 +86,7 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c MouseAction mouseAction = MouseAction.None; switch (mouseActionToken) { + case "NONE" : mouseAction = MouseAction.None; break; case "LEFTCLICK" : mouseAction = MouseAction.LeftClick; break; case "RIGHTCLICK" : mouseAction = MouseAction.RightClick; break; case "MIDDLECLICK" : mouseAction = MouseAction.MiddleClick; break;