Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
WPF DATA BINDING FOR DESKTOP APPLICATIONS
Rating: 4.4 out of 5(29 ratings)
108 students

WPF DATA BINDING FOR DESKTOP APPLICATIONS

Learn data binding with WPF
Created byPeter Njuno
Last updated 4/2021
English

What you'll learn

  • Data Binding in WPF

Course content

1 section9 lectures2h 44m total length
  • INTRODUCTION TO DATA BINDING11:18

    Explore the basics of data binding in WPF, linking data from databases or objects to UI elements via dependency properties, with a slider to text box binding example.

  • COMPONENTS OF DATA BINDING10:48

    Explore the four components of data binding—binding source, binding, binding target, and target property—and discover how they connect data to a user interface.

  • MODES / DIRECTIONS OF DATA BINDING12:01

    Explore modes and directions of data binding in WPF, including one-way, two-way, one-way to source, and one-time binding, and how data flows between source and target.

  • DATA BINDING UPDATE SOURCE TRIGGER7:32

    Explore WPF data binding update source triggers—property changed, lost focus, and explicit—and see how text box edits propagate back to the source for real-time or on-demand updates.

  • DATA BINDING DATACONTEXT16:47

    WPF data binding uses a data context, via a dependency property, to bind a patient object's name, location, and age to text boxes in a desktop app.

  • DATA BINDING - BINDING COLLECTIONS28:09

    Learn how to bind a collection of objects in a WPF app using observable corrections, update the UI on changes, and display patient name and location with data templates.

  • DATA BINDING - DATA CONVERTORS18:19

    Learn how to implement WPF data binding converters using the IValueConverter interface, including converting booleans to yes/no and strings to brush backgrounds, with practical examples.

  • DATA BINDING - INOTIFYPROPERTYCHANGED39:45

    Examine how the INotifyPropertyChanged interface updates the user interface for single-object changes and how observable collections trigger automatic UI updates during WPF data binding.

  • BINDING SOURCE19:34

    Explore binding sources in WPF desktop data binding, implementing the INotifyPropertyChanged interface, using public properties, and binding a student object to text blocks.

Requirements

  • basics of WPF

Description

Data binding in Windows Presentation Foundation (WPF) provides a simple and consistent way for apps to present and interact with data. It is is the process that establishes a connection between the app UI and the data it displays. In this course, I will take you through how to bind data in a WPF application.

You will learn,

  • What is data binding,

  • Data binding concepts

  • How to creating a binding,

  • Data flow / binding mode

  • Data binding triggers source updates,

  • Data binding components,

  • Binding source,

  • Data conversion,

  • Binding to a collection.

  • Inotifyproperychanged

  • Observablecollections

To take this course, you need to have

  • Computer

  • Visual studio installed

  • Basic understanding of C# language

  • Basic understanding of WPF

  • Basic understanding of XAML.

The source of a Windows Presentation Foundation (WPF) data binding can be any CLR object. You can bind to properties, sub-properties, or indexers of a CLR object. The binding references are resolved by using either Microsoft .NET Framework reflection or an ICustomTypeDescriptor.

The data binding functionality in WPF has several advantages over traditional models, including inherent support for data binding by a broad range of properties, flexible UI representation of data, and clean separation of business logic from UI. It is a powerful feature that every WPF developer must learn. In this mechanism, the management of data is entirely separated from the way data. Data binding allows the flow of data between UI elements and data object on user interface.

Who this course is for:

  • WPF developers