Localization and ChangePropertyAction
I'm trying to change the text of a target using a ChangeProeprtyAction like this:
However, this seems to always make the text into an empty string.
Is there another / valid way to do this?
thanks,
sam
Code: Select all
<b:ChangePropertyAction TargetName="Status" PropertyName="Text" Value="{noesis:Loc Text.FrontEnd.AddFriend.Label.InvalidFormat}"/>
Is there another / valid way to do this?
thanks,
sam
-
-
sfernandez
Site Admin
- Posts: 2908
- Joined:
Re: Localization and ChangePropertyAction
The current implementation of Loc extension only works for properties of FrameworkElements in the tree, because it uses the dictionary from the LocExtension.Resources inherited property. Could you please report this in our bugtracker, we want to analyze how we could add support for that.
In the meantime, could you try doing the following:
In the meantime, could you try doing the following:
Code: Select all
<TextBlock x:Name="txt" ... Tag="{noesis:Loc Text.FrontEnd.AddFriend.Label.InvalidFormat}"/>
...
<b:ChangePropertyAction TargetName="Status" PropertyName="Text" Value="{Binding Tag, ElementName=txt}"/>
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest