GroupedObservableCollection | grouped data to be presented in a XAML type | Data Visualization library
kandi X-RAY | GroupedObservableCollection Summary
kandi X-RAY | GroupedObservableCollection Summary
An implementation of ObservableCollection that allows for grouped data to be presented in a XAML type of UI, providing support for updates to the underlying data.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of GroupedObservableCollection
GroupedObservableCollection Key Features
GroupedObservableCollection Examples and Code Snippets
Community Discussions
Trending Discussions on GroupedObservableCollection
QUESTION
The premise: I am a new to c# and StackOverflow.
I have a list in which the user can search, has filters, and has sorting.
I query the original collection and feed it to the collection that is bound to the view.
While the user is searching (async) I query and replace the collection completely. When the user filters/sorts I query, compare and add/remove from displayed collection.
The question:
Is there a way to make these queries less verbose using another technique? This piece of code only contains code for one filter case... This gets real lenghty real fast and repeats parts of the queries often.
I am not experienced enough to know if the following code is the most performant approach, but it works.
...ANSWER
Answered 2018-Sep-16 at 22:17Linq's Where
function expects a Func
(T
in your case is MyClassObject
) but you've supplied an Expression>
, change the code to look like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install GroupedObservableCollection
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page