Page 1 of 1

Error: 'StaticResourceExtension' is not valid for Setter.Value.

Posted: 31 Jul 2024, 23:59
by burst2flame
In my blend project I get the following error:

'StaticResourceExtension' is not valid for Setter.Value. The only supported MarkupExtension types are DynamicResourceExtension and BindingBase or derived types.

This causes previews in the blend project to fail, but in Unity there's no errors and it works fine. Any help?

Re: Error: 'StaticResourceExtension' is not valid for Setter.Value.

Posted: 01 Aug 2024, 10:37
by sfernandez
It could be a problem with the order of the definition of the resources. A StaticResource can only be used if the referenced resource was defined before in the same dictionary or in a merged dictionary.

Can you check that?