-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xaml Unsupported MouseAction.None value #8842
Comments
Technically the documentation says that It probably wouldn't hurt to make it recognize That said, using |
Visual Studio emits it as an error, But you can build normally, then Bomb, throws an exception. It 's seem buggy |
That seems expected. It's the designer in Visual Studio that tries to load the XAML. Building does not load the XAML, it just stores it in the assembly as a resource. When you run the application, it reads the resource and tries to load it. Loading is the bit that tries to convert the values and fails. |
IMO, In XAML |
PRs are welcome! |
Hello, I have created a PR. please review my code changed |
Description
Bug in parsing Xaml for
MouseAction .None
NotSupportedException: Unsupported MouseAction 'NONE'.
I use Win 10, VS 2022 17.9.1
SDK : .NET 8.0
Reproduction Steps
<MouseBinding MouseAction="None" Command="{Binding cmd}"/>
in grid.Expected behavior
No Error. None is a valid value. Compile and run normal
ref docs: https://learn.microsoft.com/en-us/dotnet/api/system.windows.input.mouseaction?view=windowsdesktop-8.0
Actual behavior
Error XLS0431 Invalid value for property 'MouseAction': 'None'
then run the app, it will occur an exception.
Regression?
No response
Known Workarounds
No response
Impact
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: