collectionviewsource Questions
2
Solved
I have a ListView that contains two types of objects, single and multiple.
The single is a ordinary TextBlock while the multiple is a ComboBox with items.
I'm trying to group the items in the Comb...
Auditor asked 27/8, 2010 at 14:15
4
Solved
Really the subject says it all.
<CollectionViewSource x:Key="MyData"
Source="{Binding}" Filter="{ SomethingMagicInXaml? }" />
It's not that I can't have code behind. It just nags at me.
Thready asked 23/6, 2011 at 23:31
1
What are the differences between CollectionViewSource, ICollectionView, ListCollectionView, IList and BindingListCollectionView?
When and where to use all these collections?
I know the main use of ...
Hartnett asked 20/6, 2013 at 12:54
10
Solved
I have a WPF DataGrid bound to a CollectionViewSource that encapsulates an ObservableCollection. This CollectionViewSource has two main objectives:
1) To group each item by a specific property of ...
Hogweed asked 8/8, 2013 at 9:42
3
Solved
I am binding a ComboBox to Entities but I want the data filtered.
Up to now I have tried two ways:
"simple" one: Apply the filter directly to the ObjectSet throught
LINQ to Entities
setting a f...
Deangelo asked 24/1, 2013 at 9:8
2
Solved
I'm using a an ObservableCollection with two ICollectionView for different filters.
One is for filtering messages by some type, and one is for counting checked messages.
As you can see message fil...
Resurge asked 19/5, 2013 at 11:31
6
Solved
I am using CollectionViewSource to filter the records displayed in a ListBox. The xaml follows.
<Window x:Class="WPFStarter.ListBoxItemsFilter.ListBoxFilterUsingCollectionViewSource"
xmlns="h...
Widgeon asked 17/8, 2010 at 6:39
3
Solved
I used Drag and Drop to bind Data Source object (a DB model) to DataGrid (basically following this example in Entity Framework Databinding with WPF.
Everything works fine with this implementation...
Clive asked 2/1, 2014 at 17:45
4
Solved
I am trying to implement some combo box sorting using CollectionViewSource. This combo box is actually part of a data template and is repeated in a list view. My first approach seemed to work (usin...
Squeamish asked 1/3, 2011 at 20:24
5
Solved
I am looking for a way to re-sort my DataGrid when the underlying data has changed.
(The setting is quite standard: The DataGrid's ItemSource property is bound to an ObservableCollection; The colu...
Bartle asked 16/7, 2012 at 13:22
3
Solved
Is there a way to get notified when CompositeCollection's current location changes?
I need to have the CompositeCollection monitored by a CollectionView, any ideas are welcommed.
Consanguinity asked 17/1, 2010 at 0:50
0
If I bound my ListBox to ViewModels ObservableCollection or XAML resourced CollectionViewSource, the mock data shows while in design.
Sometimes CollectionViewSource stops showing this data becaus...
Bushtit asked 29/6, 2016 at 7:48
1
Solved
I got really big ObservableCollection<MyItem> and I need to provide user-friendly filtering on it.
public static async Task RefilterViewAsync(this ItemsControl @this, Predicate<object>...
Terris asked 29/1, 2016 at 18:13
3
I've got an ItemsControl in XAML where I am displaying an expander for each group so I can expand/collapse the group. I want to persist the state of the IsExpanded property (and potentially other s...
Taskwork asked 5/11, 2012 at 15:23
1
Solved
I have a ViewModel containing a ListCollectionView property, and a View containing a ListView control whose ItemsSource property is data bound to the ListCollectionView:
ViewModel:
public ListCo...
Bourbon asked 14/10, 2015 at 14:38
6
Solved
I am working on a WPF desktop application using the MVVM pattern.
I am trying to filter some items out of a ListView based on the text typed in a TextBox. I want the ListView items to be filtered ...
Feeley asked 24/6, 2011 at 11:11
1
Solved
In another question I recently asked, I was told to use a CompositeCollection in order to access various sources for a ListBox.
The example used a XmlDataProvider to provide some dummy data. I, ho...
Gunther asked 21/8, 2014 at 19:3
1
How would you go about using a CollectionViewSource (to supply sorting behavior) in conjunction with a HierarchicalDataTemplate's ItemsSource?
So given the code below, how could I apply sorting o...
Seraglio asked 4/8, 2014 at 21:3
1
Solved
I'm new to WPF and I'm having difficulty trying to sort a CollectionViewSource with a custom sort. Here's the situation:
I have a SearchView that is called with a parameter which becomes it's data...
Platter asked 10/6, 2014 at 17:43
3
Solved
I am using a CollectionViewSource in a dialog view model that has various filtering requirements, which works fine. I also maintain the equivalent of the selected item in a property (SelectedProjec...
Board asked 27/2, 2010 at 19:4
1
I'm a little confused about how the data binding works when using these types.
I've read that you can't do the following
public partial class Window1 : Window
{
public ObservableCollection<s...
Sikko asked 22/5, 2013 at 22:56
3
Solved
I'm using a DataGrid bound to a CollectionViewSource (players), itself bound to the currently selected item of a ListBox (levels), each item containing a collection to be sorted/displayed in the Da...
Amphidiploid asked 31/8, 2010 at 15:16
2
Solved
I have a simple ListView and want to sort the contents numerically or alphabetically, ascending or descending. The choice comes from a drop down box. I understand I can use CollectionViewSource to ...
Stormproof asked 30/11, 2011 at 19:2
3
Solved
I have a datatemplate for a viewmodel where an itemscontrol is bound against a CollectionViewSource (to enable sorting in xaml).
<DataTemplate x:Key="equipmentDataTemplate">
<Viewbox>...
Repugnant asked 19/9, 2009 at 6:35
1
I have a problem in showing Design Time data in blend here is my code
This is my collection view source:
<CollectionViewSource
x:Name="DataSource"
Source="{Binding Groups}"
IsSourceGrouped...
Mycenae asked 2/5, 2012 at 8:20
1 Next >
© 2022 - 2024 — McMap. All rights reserved.