C# WPF UI Tutorials: 32 – Searching Chat Messages List Filter

Video is ready, Click Here to View ×

Part of a series of tutorials on creating WPF applications in C#

In this video we add the ability to instantly search all the chat message list and filter the UI to show only those matching the results.

Source code:

Latest code:


16 thoughts on “C# WPF UI Tutorials: 32 – Searching Chat Messages List Filter”

  1. Thnx for video very much, but it is for me 2 questions.
    1) Why the realization of command (public void Send(), public void Search() ) have public access modifier (18:58). Is it not
    is sufficient a private void?
    2) Why you not use the ICollectionView and Filter property for filtering the collection? It is no need to create a new ObservableCollection for every filter operation?

  2. Thank you for tutorial and the whole series, Luke! But you actually have a potential bug on line #269 (in latest source code).
    If you for some reason have Items == null then passing it to ObservableCollection constructor will lead to ArgumentNullException.
    FilteredItems = new ObservableCollection<…>(Items ?? Enumerable.Empty<…>()) would be better I think 🙂

    As for future video requests I would be really glad to see some error-handling during server communication, push or long-pulling auto-updates and reactive programming.

  3. Not sure if this is still true. But there are 2 different compiler engine methods used depending on the CPU you use. And the AMD compiler method is very inefficient. It was done on purpose to make sure people use Intel CPU's. This will be why the compiling is taking longer on your new machine.
    Interesting Watch on the History of the 2 companies https://www.youtube.com/watch?v=osSMJRyxG0k

  4. Hi. Will you eventually do some entered text validation? For example when we have a textbox where we want to enter a number in some given interval. Recently I simple bound the content to the string property and did the parsing by myself, but I don't feel it was the right solution.

  5. I don't see any of your web server tutorials on your channel, are they private?

    Also would you be able to do one more WPF video on the different buttons at the top of the side bar? Just the change over to the different views? That would be amazing!

Leave a Reply

Your email address will not be published. Required fields are marked *