我试过这个:
Sets literally Show {Binding Source={StaticResource AppInfoer}, Path=Title}
<MenuItem Header="Show {Binding Source={StaticResource AppInfoer}, Path=Title}"
Command="{StaticResource ShowWindowCommand}" CommandParameter="Open" />
鉴于Header="{Binding Source={StaticResource AppInfoer}, Path=Title}"
很好地解决了“主应用程序”,我怎么能成功
{Binding Source={StaticResource AppInfoer}, Path=Title}
我希望没有额外的代码隐藏解决方案,一个涉及只是xaml一两行的解决方案?
答案 0 :(得分:2)
您是否尝试过使用StringFormat?
{Binding Source={StaticResource AppInfoer}, Path=Title, StringFormat=Show {0}}