Unable to get Code Completion and Syntax Highlighting in XAML Resource

Hi!

(I'm using 2023.3 on Windows)

I've just created an XAML ResourceDictionary in its own file. I'm using it to contain some styles and am loading it via a pack URI. The correct build action for this seems to be “resource”, but when that's selected, all syntax highlighting and code completion disappears.

I can set the type of file to “OriginalXamlResource” or “Embedded Resource” and I get syntax highlighting back, but of course I then can't access it with a pack Uri. Is there a workaround for this?

Many thanks,

Adam

0
1 comment

Hello PopeGregoryIX, thank you for your question. We have a similar issue in our bug tracker about this. As a workaround please go to “File | Settings | Editor | File Types | XML” and add “*.xaml” to the list of “File name patterns”. Hope this helps.

Please let me know if you have any questions. Thank you and have a nice day!

0

Please sign in to leave a comment.