Organize Items in DropDownButton?
问题 I've a collection of items inside an ObservableCollection , each item have a specific nation name (that's only a string). This is my collection: private ObservableCollection<League> _leagues = new ObservableCollection<League>(); public ObservableCollection<League> Leagues { get { return _leagues; } set { _leagues = value; OnPropertyChanged(); } } the League model have only a Name and a NationName properties. The Xaml looks like this: <Controls:DropDownButton Content="Leagues" x:Name=