el-nino
el-nino

Reputation: 399

Concat strings in a textblock with static ressources (without bindings)

i try doing something like this:

<Label Content="{x:Static localization:localization.Offset}" ContentStringFormat="{}{0} A"/>

the result of this line is: "Offset A"

i would like to do that with a textblock. is that possible?

Upvotes: 2

Views: 1128

Answers (1)

Sheridan
Sheridan

Reputation: 69985

You can try something like this:

<TextBlock Text="{Binding Source={x:Static localization:localization.Offset}, 
    StringFormat={}{0} A}" />

Upvotes: 5

Related Questions