Localization and ChangePropertyAction
I'm trying to change the text of a target using a ChangePropertyAction 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: 3093
- 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}"/>
- David Jefferies
- Posts: 27
- Joined:
Re: Localization and ChangePropertyAction
We have the same issue - has there been any progress adding support for this?
-
sfernandez
Site Admin
- Posts: 3093
- Joined:
Re: Localization and ChangePropertyAction
I've created ticket #3226 to track development of this feature.
For the moment there's been no progress, sorry.
Can you use the proposed workaround or is not an option for you?
For the moment there's been no progress, sorry.
Can you use the proposed workaround or is not an option for you?
Who is online
Users browsing this forum: No registered users and 1 guest