Sample repo for MVVM package
Перейти к файлу
Brandon Minnick cacbbfda9e Update XAML 2024-10-10 15:44:46 -07:00
msdocs-communitytoolkit@74b3cf6f01 Add docs pages for source generators 2022-07-22 15:57:10 +02:00
samples Update XAML 2024-10-10 15:44:46 -07:00
.git-blame-ignore-revs Update .git-blame-ignore-revs 2022-03-11 14:28:40 +01:00
.gitignore Add MAUI App 2024-10-10 14:29:22 -07:00
.gitmodules Rename submodule to msdocs-communitytoolkit 2022-07-09 14:00:18 +02:00
CHANGELOG.md Updated changelog for Preview 4 2020-11-20 23:51:01 +01:00
README.md Update readme with latest info from 8.0 release. 2022-08-18 14:44:37 -07:00
azure-pipelines.yml Add MAUI 2024-10-10 14:34:57 -07:00
license.md Renamed file to enable markdown renderer 2020-08-11 20:27:28 +02:00

README.md

.NET Community Toolkit

This new "MVVM Toolkit" is part of the .NET Community Toolkit. The .NET Community Toolkit is part of the .NET Foundation.

Store link NuGet Downloads

image

MVVM Toolkit & Samples

The MVVM library of the .NET Community Toolkit can be found in the CommunityToolkit.Mvvm NuGet package. It will be known as the "MVVM Toolkit" in short for reference.

The full official documentation can be found in MS Docs website.

This repo contains initial samples for how to utilize the library as part of our sample app itself. You can download the sample app in the Microsoft Store here.

image

Introduction to the MVVM Toolkit

The CommunityToolkit.Mvvm package is a modern, fast, and modular MVVM library. It is built around the following principles:

  • Platform and Runtime Independent - .NET Standard 2.x 🚀 (UI Framework Agnostic)
  • Simple to pick-up and use - No strict requirements on Application structure or coding-paradigms (outside of 'MVVM'ness), i.e., flexible usage.
  • À la carte - Freedom to choose which components to use.
  • Reference Implementation - Lean and performant, providing implementations for interfaces that are included in the Base Class Library, but lack concrete types to use them directly.

The package targets .NET Standard so it can be used on any app platform: UWP, WinForms, WPF, Xamarin, Uno, and more; and on any runtime: .NET Native, .NET Core, .NET Framework, or Mono. It runs on all of them. The API surface is identical in all cases. When running on newer runtimes, like .NET 6, it is still optimized to take advantadge of those platforms for the best performance.

You can read more about the latest features in the release blog here.

Background

This library was inspired by MVVMLight by Laurent Bugnion. Development was started in April 2020 as a path forward for developers using MVVMLight. We've worked with Laurent, the community, and Windows Template Studio to ensure successful migration paths for projects using MVVMLight today.

We decided to start from the ground-up as a new project to architect a modern .NET Standard starting point as well as targeting a high-performance implementation which reduces overhead for memory and CPU cycles. Many things in the .NET ecosystem have evolved and changed since the time MVVMLight had begun.

The Windows Community Toolkit seemed like a good home for this new library. This enables it to have broad support from the community, backing from the .NET Foundation, and longevity for the future. It has since spun off into being a major part of the .NET Community Toolkit.

We intend this library to be feature-complete and provide a common basis for app developers to create shared .NET Standard code in their applications for building with the MVVM pattern.

It is not our intent to add or support platform-specific features. We encourage app developers to:

  • Use samples to understand how to integrate with their platform
  • Build upon this work for simplification of patterns for a specific platform
  • If needed, utilize other .NET Foundation supported alternatives like MVVMCross and Prism

Contributing

If you find an issue with our docs or have suggestions, please check the latest documentation and file an issue on the docs repository.

If you'd like to help us with a sample for your own platform, please file an issue here and open up a dialog, or respond to one of the existing open issues tracking known platforms.

We do encourage suggestions, contributions, or platform-agnostic feature requests as well. Please open an issue to start that discussion on the main repo here.

License

MIT