How can I disable ContextMenu when mouse right click or long press? #16784
-
Beta Was this translation helpful? Give feedback.
Answered by
stevemonaco
Aug 24, 2024
Replies: 1 comment 3 replies
-
|
You're setting the wrong property: <Style Selector="TextBox">
<Setter Property="ContextFlyout" Value="{x:Null}" />
</Style>This works, at least for right-click on Windows desktop. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
kyuranger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

You're setting the wrong property:
Avalonia/src/Avalonia.Themes.Simple/Controls/TextBox.xaml
Line 92 in e627821
This works, at least for right-click on Windows desktop.