This project is read-only.

Binding to DynamicResource

Jul 8, 2015 at 9:54 PM
Edited Jul 9, 2015 at 2:55 PM
I am looking for a way to bind to DynamicResource (stirng) but with StringFormat field.
I want to bind to such expression: 'My string: ' + {DynamicResource MyKey}

I can achieve my goal with (
But it is interesting, is it possible to binding to DynamicResource with this library? Because if possible, it should be simply.
Aug 11, 2015 at 3:34 PM
Edited Nov 16, 2015 at 4:49 PM
Sorry, totally overlooked this post. You can't bind directly to a dynamic resource, but you could do the following.

<TextBlock Tag="{DynamicResource MyKey}" Text="{Binding Tag, RelativeSource={RelativeSource Self}, Converter={qc:QuickConverter '\'My String: \' + $P'}" />