AnKor
Topic Author
Posts: 23
Joined: 22 Jul 2022, 16:14

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

13 Dec 2023, 11:10

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?
 
User avatar
sfernandez
Site Admin
Posts: 3013
Joined: 22 Dec 2011, 19:20

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

14 Dec 2023, 11:28

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?
 
AnKor
Topic Author
Posts: 23
Joined: 22 Jul 2022, 16:14

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

14 Dec 2023, 14:17

Yes, it works now. Thanks!

Who is online

Users browsing this forum: No registered users and 2 guests