Top "Itemssource" questions

Need SIMPLE working example of setting WPF MVVM ComboBox ItemsSource based on SelectedValue of second ComboBox

Can anyone show me a simple working example for a WPF MVVM application to set the ItemsSource of combobox B …

wpf combobox selecteditem itemssource
WPF BindingListCollectionView to ListCollectionView for DataTable as ItemsSource

I want to do custom sorting on a ListView which has a DataTable as ItemsSource: myListView.ItemsSource = (data as DataTable); …

datatable itemssource listcollectionview
How to get cell level ComboBox for WPF DataGrid?

It looks WFP DataGridComboBoxColumn is using a single ItemsSource for all cells in this column. I have a case where …

wpf datagrid combobox itemssource
WPF: how to bind ComboBox ItemsSource in code?

I need to convert this following XAML into code-behind: <ComboBox SelectedItem="{Binding Level}" ItemsSource="{Binding Levels}" /> However, this …

wpf binding itemssource
WPF - reset ListBox scroll position when ItemsSource changes

I currently have a ListBox whose ItemsSource collection is bound to a property on my viewmodel, of type IEnumerable. When …

wpf listbox scroll itemssource
How to use RelativeSource Binding to create DataGrid binding to Model and ViewModel?

I have a DataGrid which has a DataGridTemplateColumn that uses the ItemsSource binding of the DataGrid, but in the ComboBox …

c# binding datagrid relative-path itemssource
WPF DataGrid cannot Add a row when datasource is empty

CanUserAddRows="True" only 'works' when there's already data in the ItemsSource of the DataGrid. If it just so happens that …

wpf datagrid row itemssource
WPF Binding ItemsSource to a static method?

I have the following static method in an class called "Article" : public static ObservableCollection<Article> GetObservableCollection() { ... } And I'd …

wpf binding methods itemssource
Dynamically changing ItemsSource of a WPF ComboBox

I have a WPF application that contains two comboboxes (we'll call them cbox1 and cbox2). cbox1 has its ItemsSource bound …

wpf binding combobox itemssource
Listbox not updating when items added or removed from ObservableCollection

I have a "Hello World" type application. A listbox.ItemsSource = Players. Players is an ObservableCollection of Player that implements INotifyPropertyChanged. …

wpf windows-phone-7 listbox itemssource