Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dynamic Key Lookup Resource

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Support
View previous topic :: View next topic  
Author Message
TravisWhidden



Joined: 26 Jan 2012
Posts: 8

PostPosted: Mon Jan 30, 2012 4:58 am    Post subject: Dynamic Key Lookup Resource Reply with quote

What would you recommend if I have a bound field that binds a "key" that can be looked up in the resources?

For example:

Code:
<TextBlock Text="{Resx ResxName=Blah.Blah.SomeView, Key={Binding SomeViewModelField }}"/>


Where SomeViewModelField is a dynamic type (not an enum). I would like the View to lookup the resource for that key, but I cannot use a Binding with the Key within Resx.

I could do a IValueConverter and have it look it up, but just wanted to see if there was a more elegant way using that libs you have created.

Thanks.
_________________
Travis
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Jan 30, 2012 6:17 am    Post subject: Reply with quote

I don't know of a more elegant way to do that.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group