Page 1 of 1

Visual Studio doesn't like noesis:Text.CharacterSpacing on Run elements

Posted: 13 Dec 2023, 11:10
by AnKor
An attempt to do this:
<Run noesis:Text.CharacterSpacing="100">Hello World!</Run>
causes error in VS2022 designer:
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".
Everything works fine at runtime, but VS designer just shows "Invalid Markup" which is annoying.
Seems like an oversight in your NuGet package that defines these properties.

Is there any workaround?

Re: Visual Studio doesn't like noesis:Text.CharacterSpacing on Run elements

Posted: 14 Dec 2023, 11:28
by sfernandez
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?

Re: Visual Studio doesn't like noesis:Text.CharacterSpacing on Run elements

Posted: 14 Dec 2023, 14:17
by AnKor
Yes, it works now. Thanks!