Skip to main content
00:00/00:00
Lecture 9 of 103

Work with Elements and Attributes

Download Course (Free)

Course Content

0 / 103 completed
Section 1: Creating Your First WPF Application7 videos

Set up Your Environment

1m

What Is the Windows Presentation Foundation

1m

Introduction

1m

Create and Explore a WPF Project

6m

What You Will Learn in This Course

3m

Summary

1m

Understand How Files Are Generated

12m
Section 2: Course Overview1 videos

Course Overview

1m
Section 3: Instantiating Objects in XAML6 videos

Introduction

1m

Work with Elements and Attributes

3mNow Playing

Set Properties with the Property Element Syntax

7m

Use the Collection Syntax

2m

Summary

1m

Set Properties with the Content Syntax

10m
Section 4: Building a User Interface11 videos

Introduction

1m

Know the WPF Layout Panels

7m

Build a Layout with the Grid

8m

Understand the Size of Rows and Columns

6m

Center the Header

2m

Use Layout Properties to Position Elements

6m

Create a Nested Grid for the Navigation

5m

Set Attached Properties in XAML

2m

Set Attached Properties in C.Sharp

8m

Summary

1m

Access Attached Properties with Static Methods

4m
Section 5: Organizing Code with UserControls6 videos

Introduction

1m

Refactor the XAML Code in the MainWindow

5m

Summary

1m

Extract the Header into a UserControl

6m

Understand the XAML Namespaces of WPF

6m

Create a UserControl for Customers

8m
Section 6: Applying Data Binding and MVVM14 videos

Introduction

1m

Bind to Another Element

6m

Know How the Data Context Works

2m

The Model View ViewModel MVVM Pattern

3m

Create a CustomersViewModel

8m

Use the ViewModel for the CustomersView

6m

Add a SelectedCustomer Property

5m

Implement the Logic to Add a Customer

3m

Refactor Logic into a ViewModelBase Class

3m

Notify About Property Changes

6m

Bind the Grid.Column Property

5m

Create a CustomerItemViewModel

7m

Summary

1m

Convert Values with an IValueConverter

11m
Section 7: Executing Code with Commands6 videos

Introduction

1m

Understand Commands and MVVM

3m

Use the DelegateCommand in the ViewModel

7m

Raise the Commands CanExecuteChanged Event

7m

Summary

1m

Create a DelegateCommand Class

8m
Section 8: Creating Reusable Resources6 videos

Introduction

1m

Summary

1m

Move Resources to a Separate File

4m

Define a Binding Converter as a Resource

7m

Understand XAML Resources

11m

Merge Multiple Resource Dictionaries

5m
Section 9: Working with Data Templates13 videos

Introduction

1m

The Plan with the ContentControl

2m

Understand WPFs Flexible Content Model

3m

Set the Navigation to a Fixed Width

3m

Use a Data Template with an ItemsControl

8m

Bind to the MainViewModel

6m

Implement a MainViewModel

6m

Use a Data Template with a ContentControl

5m

Understand Implicit Data Templates

5m

Create a SelectViewModelCommand

5m

Introduce Another Detail View

7m

Summary

1m

Bind the Menu Items to the Command

3m
Section 10: Setting up Dependency Injection5 videos

Introduction

1m

Summary

1m

Instantiate the MainWindow in C.Sharp

5m

Set up Dependency Injection

8m

Register and Use Another Type

9m
Section 11: Styling Your Application8 videos

Introduction

1m

Understand the Need for Styles

4m

Define Property Values with a Style

6m

Understand Explicit and Implicit Styles

3m

Inherit a Style from Another Style

3m

Define an Application-wide TextBox Style

4m

Summary

1m

Use Property Triggers in a Style

6m
Section 12: Mastering Control Templates5 videos

Introduction

1m

Adjust the Size of the CheckBox

3m

Summary

1m

Define the Look of a Custom Control

5m

Create a ControlTemplate for the CheckBox

8m
Section 13: Validating User Input11 videos

Introduction

1m

Understand Input Validation in WPF

2m

The Plan with INotifyDataErrorInfo

1m

Create a ValidationViewModelBase Class

6m

Validate the FirstName Property

5m

Remove the Red Border in the ListView

3m

Add Methods to Add and Remove Errors

5m

Use the Validation Error Template

5m

Show the Error in the Tooltip

7m

Summary

1m

Show the Error in the User Interface

3m
Section 14: Debugging Your WPF Application4 videos

Introduction

1m

Explore the Live Visual Tree

6m

Summary

1m

Inspect Properties at Runtime

6m