【发布时间】:2011-09-12 09:28:15
【问题描述】:
我试过这个:
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}" 很好地解析为“主应用程序”,我怎么能成功
- 添加文字字符串“Show”
- 到
{Binding Source={StaticResource AppInfoer}, Path=Title}的字符串输出
我希望没有额外的代码隐藏解决方案,该解决方案只涉及一两行 xaml ?
【问题讨论】: