ck_russ
Topic Author
Posts: 27
Joined: 20 May 2020, 14:41

Resource dictionary keys using the x:Static markup extension treat the value as a literal for key

14 Jul 2020, 10:07

For instance:
<ImageBrush x:Key="{x:Static local:SomeStaticClass.SomeKeyName}" ... />
That will end up getting inserted into the resource dictionary as "local:SomeStaticClass.SomeKeyName" instead of the static value referenced.

Tags:
 
User avatar
sfernandez
Site Admin
Posts: 1911
Joined: 22 Dec 2011, 19:20

Re: Resource dictionary keys using the x:Static markup extension treat the value as a literal for key

16 Jul 2020, 12:40

As described in our documentation Static extension is not fully supported yet.
There is an open issue for this: #1305, sorry for the inconveniences.
 
ck_russ
Topic Author
Posts: 27
Joined: 20 May 2020, 14:41

Re: Resource dictionary keys using the x:Static markup extension treat the value as a literal for key

16 Jul 2020, 17:05

Got it, thanks. I've updated the issue you referenced to also include this side of it since it has a slightly different outcome in that Noesis doesn't complain at all about the syntax.

Who is online

Users browsing this forum: No registered users and 0 guests