我看到组合框 itemsource 可以通过两种主要方式绑定:
直接绑定
<ComboBox Name="k" ItemsSource="{Binding Path=Mylist}"/>
集合查看源
<Window x:Class="WpfApplication25.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Window.Resources>
<CollectionViewSource x:Key="list" Source="{Binding Items}"/>
</Window.Resources>
<ComboBox Name="k" ItemsSource="{Binding Source={StaticResource list}}"/>
这两种方法有什么区别?