This project is a basic demonstration of a UWP application using WinUI and the MVVM pattern. The application features a navigation sidebar, binding commands, and navigation between pages.
The application is divided into three main parts:
-
Views: These are the pages in your application, represented by XAML files and their corresponding C# code-behind files.
-
ViewModels: Each page has a corresponding ViewModel which contains the logic for the page.
-
Services: Services are used to perform operations that aren't specific to a ViewModel, such as navigation.
The application uses a NavigationView for navigation. The NavigationView contains several NavigationViewItems, each representing a page in the application.
The application utilizes an INavigationService interface and a corresponding NavigationService implementation to navigate between pages.
ViewModels are bound to pages using the DataContext property in XAML.
The application uses ICommand properties in the ViewModel to handle user interaction events. These commands are bound to the respective UI elements in the XAML code.
The application includes an example of binding a TextBox to a selected item in a ListView.