Skip to content
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

Visual Studio XAML Editor shows error for new keyboard types on Editor and Entry controls #26321

Closed
Bowman74 opened this issue Dec 3, 2024 · 5 comments · Fixed by #26329
Closed
Assignees
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging fixed-in-9.0.21 platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@Bowman74
Copy link

Bowman74 commented Dec 3, 2024

Description

When adding the Keyboard attribute to an Editor or Entry field in Visual Studio using the three new values, Password, Date, and Time, the xaml editor and Visual Studio see it as an error. However, the application is still able to compile (Tried on iOS, Android and Windows) and appears to work fine when running. This seems to be solely an issue with the XAML values that the Visual Studio editor thinks are correct for the Keyboard attribute.

Steps to Reproduce

  1. Create a new MAUI project with XAML files
  2. Open a xaml file and add an Entry view <Entry Keyboard="Date" />
  3. Observe error in xaml editor and Visual Studio Error Area

Image

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, Windows, macOS

Affected platform versions

No response

Did you find any workaround?

It is not a show stopper. Likely the xaml validation needs to be updated to honor the new values for Keyboard.

Relevant log output

@Bowman74 Bowman74 added the t/bug Something isn't working label Dec 3, 2024
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Dec 3, 2024
@Zhanglirong-Winnie
Copy link

This issue has been verified using Visual Studio 17.13 Preview 1 (9.0.10 & 9.0.0 & 8.0.100 ). Can repro this issue on any platform.

@jfversluis jfversluis self-assigned this Dec 3, 2024
@jfversluis jfversluis added the area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging label Dec 3, 2024
@jfversluis
Copy link
Member

When this PR build completes, would you be able to test and see if that makes it better?

@jfversluis jfversluis added this to the .NET 9 SR2 milestone Dec 3, 2024
@Bowman74
Copy link
Author

Bowman74 commented Dec 3, 2024

@jfversluis
Absolutely, my pleasure. I'll just spin up a new copy of my VM to implement the prerelease code when I'm done watching your how to video.

I'm creating a LinkedIn Learning class on what is new in MAUI in .Net 9 and just entering these as I find them.

@Bowman74
Copy link
Author

Bowman74 commented Dec 3, 2024

@jfversluis
That did it, thanks! After updating the package and restarting Visual Studio, the three new options now show us as valid in the xaml editor.

Image

@jfversluis
Copy link
Member

Amazing @Bowman74 thanks for verifying! Keep those reports coming!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging fixed-in-9.0.21 platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants