collectionviewsource
TreeView and HierarchicalDataTemplate in code
I am tryin开发者_如何转开发g to set up a TreeView with code only from an unnested list of objects with various properties.I set up SortDescriptions and GroupDescriptions, but I cannot figure out how t[详细]
2023-03-13 15:27 分类:问答Switching a WPF ListBox ItemsSource from ObservableCollection<T> to CollectionViewSource at runtime in MVVM
I have a ViewModel in a MVVM project that is bound to a WPFView that contains a listbox where data is loaded asynchronously when you start a search.[详细]
2023-03-08 01:29 分类:问答Master Details: How do I add a detail record?
This should be simple: If I have an entity framework master detail relationship how do I add a detail record in code? Let\'s say I have parent table/entity called Book and a child/lookup table/entity[详细]
2023-03-01 09:19 分类:问答Sorting a CollectionView's Groups on a property generated by IValueConverter
I am using CollectionViewSource\'s groupings to display a virtual \"aggregate\" view of a collection of details; basically the sample seen here: ListBox Grouping, Sorting, Subtotals and Collapsible Re[详细]
2023-02-19 05:39 分类:问答How can I bind DataGrid row count after a CollectionView filter is applied?
Previously to implementing filtering on the CollectionView, i used this to display the number of rows within the datagrid;[详细]
2023-02-02 11:31 分类:问答WPF TreeView Dynamic Grouping
I\'m attempting to create a TreeView in WPF that is bound to a CollectionViewSource. I create groups in the CollectionViewSource and have the HierarchicalDataTemplate setup in the XAML to display the[详细]
2023-02-02 10:40 分类:问答CollectionViewSource+PropertyGroupDescription - count of items in a group
In my WPF application I have a CollectionViewSource which is providing a view to a private ObservableCollection. The CollectionViewSource has a PropertyGroupDescription which is utilised in a ListBox[详细]
2023-01-22 16:50 分类:问答Collection Binding on CollectionViewSource Source Property
I\'ve a CollectionViewSource as ItemsSource of my DataGrid. In Window.Resources I have this definition:[详细]
2023-01-21 23:36 分类:问答WPF - CollectionViewSource Filter event in a DataTemplate not working
I\'m seeing some really weird behavior where WPF isn\'t doing what I expect it to do.I\'ve managed to boil the problem down the following bit of code:[详细]
2023-01-21 14:02 分类:问答C#/WPF: Why is tab not focusing properly
I have a tab control <TabControl Height=\"Auto\" Grid.Row=\"1\" ItemsSource=\"{Binding Tabs}\" IsSynchronizedWithCurrentItem=\"True\">[详细]
2023-01-21 05:17 分类:问答