原文: WPF通過<x:Array>直接為ListBox的ItemsSource指派
<!--其中sys字首是在xmlns中引入了System的命名空間-->
<ListBox.ItemsSource>
<x:Array Type="{x:Type sys:String}">
<sys:String>123</sys:String>
<sys:String>123123</sys:String>
<sys:String>111231</sys:String>
<sys:String>1111</sys:String>
</x:Array>
</ListBox.ItemsSource>