Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

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

Software Engineering Courses - SE Courses via YouTube

Overview

This course teaches how to create responsive user interfaces with C# and .Net Core using WPF. The learning outcomes include designing UI elements, implementing placeholder text for TextBoxes, binding UI elements for synchronization, handling errors related to thread ownership, and utilizing features like ObservableObject, ObservableProperty, async yield return, Task.FromResult, and await keyword. The teaching method involves practical demonstrations and coding examples. This course is intended for software developers interested in enhancing their skills in creating interactive and responsive user interfaces with WPF and .Net Core.

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

Reviews

Start your review of Synchronizing WPF UI Elements Using Event Bindings - TextBox Placeholder WPF and Async Yield Return

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.