Visual Studio doesn't like noesis:Text.CharacterSpacing on Run elements
An attempt to do this:
causes error in VS2022 designer:
Seems like an oversight in your NuGet package that defines these properties.
Is there any workaround?
Code: Select all
<Run noesis:Text.CharacterSpacing="100">Hello World!</Run>
Everything works fine at runtime, but VS designer just shows "Invalid Markup" which is annoying.Error XLS0516 Property 'CharacterSpacing' is not attachable to elements of type 'Run'.
Error XDG0045 The attached property "CharacterSpacing" can only be applied to types that are derived from "UIElement".
Seems like an oversight in your NuGet package that defines these properties.
Is there any workaround?
-
sfernandez
Site Admin
- Posts: 3013
- Joined:
Re: Visual Studio doesn't like noesis:Text.CharacterSpacing on Run elements
Hi,
You're right, the NuGet extension was not defining the attached properties correctly. I have fixed it and uploaded version 3.0.25 of Noesis.GUI.Extensions that should work as expected. Could you give it a try?
You're right, the NuGet extension was not defining the attached properties correctly. I have fixed it and uploaded version 3.0.25 of Noesis.GUI.Extensions that should work as expected. Could you give it a try?
Re: Visual Studio doesn't like noesis:Text.CharacterSpacing on Run elements
Yes, it works now. Thanks!
Who is online
Users browsing this forum: No registered users and 2 guests