1
내가 콤보 상자가 itemsource는 두 가지 방법으로 바인더 제본 될 수 있음을 보았다 바인딩을 직접 대 :WPF 콤보 itemssource collectionviewsource
직접를
CollectionViewSource
<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}}"/>
<ComboBox Name="k" ItemsSource="{Binding Path=Mylist}"/>
바인딩 어떤 두 가지 방법의 차이점은 무엇입니까?