Skip to content

2. Lab 2: Avalonia MVVM

In this lab you will create an Avalonia application based on the pattern MVVM.

2.1 Preparation

You need to come to this lab well-prepared, i.e. read and understand everything up to and including Avalonia of the theory. Do the exercises.

  • Clone the gitlab repository. An invitation will come per email 2 days before your lab.
  • Create a simple application based on the template Avalonia .NET MVVM and using CommunityToolkit.Mvvm that
    • has a button to add random numbers to a list
    • has a button and a TextBox to delete a specific item of the list
    • has a ListBox showing the numbers
    • has a ComboBox with different filtering criteria for your list resulting in LINQ queries
    • uses a DockPanel to arrange the controls
    • uses a Menu to do something reasonable

2.2 During the lab

In a random team of four students you will develop a small application using git and Avalonia UI using MVVM. I will specify the application at the start of the lab, i.e. you may not prepare the specific app.

  • I present the application to be build, and you ask questions to clarify the requirements (10 min).
  • Create the initial project together, use the template Avalonia .Net MVVM (10 min).
  • Plan your first sprint (10 min),
  • Start pair programming (40 min).
  • Merge your code (15 min).
  • Sprint Review with all teams (10 min).
  • Short retrospective, how can you work better in the next sprint (15 min)?
  • Short break (15 min).
  • Plan your second sprint (10 min).
  • The other one is now using the keyboard and hence needs to pull the project first. Start pair programming (40 min).
  • Merge your code (15 min).
  • Sprint Review with all teams (10 min).