YoVDO

Synchronizing WPF UI Elements Using Event Bindings - TextBox Placeholder WPF and Async Yield Return

Offered By: Software Engineering Courses - SE Courses via YouTube

Tags

WPF Courses C# Courses .NET Core Courses

Course Description

Overview

Learn how to create responsive and interactive user interfaces in WPF using .NET Core 7. Explore techniques for synchronizing UI elements, implementing TextBox placeholders, and leveraging asynchronous programming. Discover how to use ObservableCollection for automatic ListBox synchronization, handle thread-safe operations with Random.Shared, and manage UI access from sub-threads. Master the implementation of data binding with ObservableObject and ObservableProperty from Microsoft Toolkit MVVM. Gain insights into proper DataContext setting, automatic property change notifications, and advanced async programming techniques including yield return, Task.FromResult, and async ForEach loops.

Syllabus

Introduction to the lecture
Composing the .NET Core 7 #WPF application
Starting to design the user interface
Starting to code the PlaceHolder text feature for TextBoxes
How to do unboxing with the "as" keyword
Start the second part of the lecture. Adding a ListBox
Defining an ObservableCollection and binding to ListBox for automatic synchronization
Coding a random value generating method with thread-safe Random.Shared property
How to access UI elements from static methods in sub-threads
How to display hidden errors by enabling Common Language Runtime Exceptions in Microsoft Visual Studio
Handling "the calling thread cannot access this object because a different thread owns it error" for UI elements
How to do synchronization with Dispatcher.BeginInvoke
Starting the third part of the lecture. #Binding #UI elements to automatically notify properties
How to use #ObservableObject and #ObservableProperty of Microsoft Toolkit MVVM and Community Toolkit
How to bind UI element to ObservableProperty in XAML code
Setting #DataContext of UI element for proper binding
How to use notifyPropertyChangedEvent for automatic UI updates
How to get property change event triggering caller name automatically with CallerMemberName
#Async #Yield #Return Example
How to use Task.FromResult and await Task.Delay
How to use await keyword for an async ForEach loop


Taught by

Software Engineering Courses - SE Courses

Related Courses

Building Your Azure Skills Toolkit
Microsoft via edX
Asynchronous Programming in C# and .NET Core
Microsoft via edX
Data Access in C# and .NET Core
Microsoft via edX
Implementing SOLID Principles in C# with .NET Core
Coursera Project Network via Coursera
RESTful Web API - The Complete Guide (.NET7 API) Part 1
Udemy