Reputation: 6689
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
{Binding Source={StaticResource AppInfoer}, Path=Title}
im hoping for a no additional code-behind solution, one that involves just an xaml line or two?
Upvotes: 3
Views: 2033
Reputation: 39650
Have you tried using StringFormat?
{Binding Source={StaticResource AppInfoer}, Path=Title, StringFormat=Show {0}}
Upvotes: 2