markjprice/cs10dotnet6

Chapter 19

Opened this issue · 0 comments

Disclaimer

  • I try to build the project for the Windows desktop using CLI in VSCodium.
  • The following applies to online chapter

Creating a .NET MAUI solution

In step 1.iii you write

Project file and folder: Northwind.Maui.Client

But further in the text it is referenced as Northwind.Maui.Customers. For example, in step 9 on the pic 19.6 one can clearly see
Northwind.Maui.Client


Implementing the customer list view

In step 4 (notes) you write

BindingContext is set to an instance of CustomersViewModel, which is populated with sample data in the constructor of the page.

but BindingContext is actually set to CustomersListViewModel


Implementing the customer detail view

In step 1 there is a code line (CustomerDetailPage.xaml):

x:Class="Northwind.Maui.Customers.Views.CustomerDetailPage"

Build fails until I remove Views part:

x:Class="Northwind.Maui.Customers.CustomerDetailPage"

Creating views for the list of customers and customer details

Step 1 tells the reader to delete MainPage.xaml, but without that file I cant build the project. So I have to leave it along with MainPage.xaml.cs and clean unused content.

Step 2. It seems that <Style> section should be inside <Application.Resources> section which is non-obviuos.