This project is read-only.


Cannot use Loc in Style Setter


This is the issue as reported in Issue 2574, except using Loc and VS2012.

When trying to set Setter.Value to Loc yields the following in VS 2012: 'LocExtension' is not valid for Setter.Value. The only supported MarkupExtension types are DynamicResourceExtension and BindingBase or derived types.
Closed Sep 5, 2013 at 9:42 AM by SeriousM
The WEP LocalizeExtension is basicly for localization and controlling some characteristics of an application depending on the selected culture.
It is not designed to be used as styling-extension.


SeriousM wrote Sep 5, 2013 at 9:43 AM

I ment WPF LocalizeExtension, not WEP :)

Phosphan wrote Aug 20, 2015 at 2:43 PM

Maybe a bit late for you, but in case someone else stumbles over this problem: You can use BLoc instead of Loc in such places.
And it has not much todo with styling - I think it is a valid use to set the text of an element using a data trigger.