FunctionZero
  • Libraries
    • Maui.MvvmZero
      • Overview
      • Quickstart
      • Walkthrough
        • Create your application
        • Create your ContentPages
        • Create your ViewModels
        • Register your new content
        • Launching our app!
        • Adding Navigation
        • Summary
      • Recommended naming conventions
      • Configuring your root Page
        • Root ContentPage
        • Root NavigationPage
        • Root TabbedPage
        • Root FlyoutPage
      • A note on Singleton vs Transient
      • Recommended base classes for PageViewModels and ViewModels
    • Maui.Controls
      • ExpanderZero
      • FocusScrollZero
      • LabelZero
      • ListViewZero
      • MaskZero
      • MultiViewZero
      • TreeViewZero
    • CommandZero
    • Maui.BindZero
      • Quickstart
      • z:Bind
      • Examples
      • The Great Escape
      • Casting
      • Short Circuit
      • Errors
      • Aliases
      • Value types and Reference types
      • z:Function
      • z:TapTrigger
      • z:EdgeTrigger
      • z:Latch
      • Advanced Usage - Functions, aliases and operator-overloads
    • AnimationZero
    • LocalisationZero
Powered by GitBook
On this page
  1. Libraries
  2. Maui.MvvmZero
  3. Walkthrough

Create your ContentPages

PreviousCreate your applicationNextCreate your ViewModels

Last updated 1 year ago

Weire going to create 4 Pages and 4 ViewModels. Start by creating a suitable folder structure. This is the recommended layout, but if you have a different preference that's good too.

In the Mvvm/Pages folder, right-click and add a .NET MAUI ContentPage (XAML)

In ReadyPage.xaml replace the Label Text with "Welcome to ReadyPage!"

Repeat the process for SteadyPage.xaml, GoPage.xaml and DetailPage.xaml

Your Mvvm folder ought to look like this:

Next we're going to create our ViewModels

Recommended folder layout
Adding a ContentPage
4 ContentPages added to the project