我的视图模型上有一个公共常量字符串,我想绑定到
系统:字符串
在下面的 xaml 片段中:
<ComboBox.ItemsSource>
<CompositeCollection>
<sys:String></sys:String>
<CollectionContainer Collection="{Binding VMCollection, Source={StaticResource proxy}}" />
</CompositeCollection>
</ComboBox.ItemsSource>
如果 String 有一个 content 属性或其他东西会很容易,但只是想找出最好的方法来做到这一点。