TravisWhidden
Joined: 26 Jan 2012 Posts: 8
|
Posted: Mon Jan 30, 2012 4:58 am Post subject: Dynamic Key Lookup Resource |
|
|
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 |
|