Stylet MVVM Framework
repository·master·Indexed 21 days ago
https://github.com/canton7/styletA lightweight, ViewModel-first MVVM framework for WPF applications targeting .NET Framework (4.5.2+) and .NET Core/5+. Designed as a flexible alternative to Caliburn.Micro, it emphasizes testability and explicit configuration over 'magic' while providing sensible defaults.
What's inside Stylet
- Stylet is a lightweight, ViewModel-first MVVM (Model-View-ViewModel) framework designed for WPF. It is inspired by Caliburn.Micro but aims to reduce 'magic' by using more explicit and powerful alternatives. It is designed to be easy to test, well-documented, and flexible, allowing developers to override almost any part of the framework while providing sensible defaults.
Introduction to Stylet MVVM Framework
masterStylet is a lightweight and powerful MVVM (Model-View-ViewModel) framework for .NET. It is designed around a ViewModel-First approach, meaning the application's structure and navigation are driven by ViewModels rather than Views. This allows for better testability and separation of concerns.Install Stylet for .NET Framework (<= .NET 4.8)
masterFor legacy .NET Framework projects (requires .NET 4.5.2 or higher and Visual Studio 2012+):
- Create a new "WPF Application" project in Visual Studio.
- Install the
Stylet.StartNuGet package. This package installs Stylet and sets up a basic skeleton project automatically.
Alternatively, you can manually install the
StyletNuGet package and follow the Quick Start guide.Access Stylet Documentation
masterFor detailed guides, API references, and advanced usage instructions, please refer to the official Stylet Wiki.Install Stylet for .NET 5.0+ or .NET Core
masterFor modern .NET projects, you can use the Stylet templates to scaffold a new project quickly via the
dotnetCLI.Install the templates:
dotnet new -i Stylet.TemplatesCreate a new .NET 5.0+ project:
dotnet new stylet -n MyStyletProject(Optional) Create a .NET Core 3.1 project specifically:
dotnet new stylet -F netcoreapp3.1 -n MyStyletProject
Alternatively, you can manually install the
StyletNuGet package and follow the Quick Start guide.dotnet new -i Stylet.Templates dotnet new stylet -n MyStyletProject