0
<DataTemplate x:Key="CategoryTemplate">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=Category}"/>
</StackPanel>
</DataTemplate>
...
<ComboBox Name="catagoryList" VerticalAlignment="Top" SelectionChanged="categoryList_SelectionChanged" IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding}" ItemTemplate="{StaticResource CategoryTemplate}"/>
...
코드 뒤에 categoryList
라는 콤보 상자에있는 모든 별개의 카테고리를 보여 드리고자합니다. 내가 어떻게 할 수 있니? 아니면 다른 방법이 있습니까? 고맙습니다.