【发布时间】:2013-01-29 05:24:39
【问题描述】:
我的视图模型上有一个公共常量字符串,我想绑定到
系统:字符串
在下面的xaml sn-p里面:
<ComboBox.ItemsSource>
<CompositeCollection>
<sys:String></sys:String>
<CollectionContainer Collection="{Binding VMCollection, Source={StaticResource proxy}}" />
</CompositeCollection>
</ComboBox.ItemsSource>
如果 String 有内容属性或其他东西会很容易,但只是想找出最好的方法。
【问题讨论】: