Cel
Cel

Reputation: 6689

Concatenate literals and staticresource string purely in xaml

i tried this:

Sets literally Show {Binding Source={StaticResource AppInfoer}, Path=Title}
<MenuItem Header="Show {Binding Source={StaticResource AppInfoer}, Path=Title}" 
Command="{StaticResource ShowWindowCommand}" CommandParameter="Open" />

given Header="{Binding Source={StaticResource AppInfoer}, Path=Title}" resolves nicely to "Main App", how could I successfully

im hoping for a no additional code-behind solution, one that involves just an xaml line or two?

Upvotes: 3

Views: 2033

Answers (1)

Botz3000
Botz3000

Reputation: 39650

Have you tried using StringFormat?

{Binding Source={StaticResource AppInfoer}, Path=Title, StringFormat=Show {0}}

Upvotes: 2

Related Questions