Stylet MVVM Framework

repository·master·Indexed 21 days ago

https://github.com/canton7/stylet

A 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.

Tokens
430
Snippets
1
Records
5
Agent score
27%

What's inside Stylet

  1. What is Stylet?

    master
    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.
  2. Introduction to Stylet MVVM Framework

    master
    Stylet 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.
  3. Install Stylet for .NET Framework (<= .NET 4.8)

    master

    For legacy .NET Framework projects (requires .NET 4.5.2 or higher and Visual Studio 2012+):

    1. Create a new "WPF Application" project in Visual Studio.
    2. Install the Stylet.Start NuGet package. This package installs Stylet and sets up a basic skeleton project automatically.

    Alternatively, you can manually install the Stylet NuGet package and follow the Quick Start guide.

  4. Install Stylet for .NET 5.0+ or .NET Core

    master

    For modern .NET projects, you can use the Stylet templates to scaffold a new project quickly via the dotnet CLI.

    1. Install the templates: dotnet new -i Stylet.Templates

    2. Create a new .NET 5.0+ project: dotnet new stylet -n MyStyletProject

    3. (Optional) Create a .NET Core 3.1 project specifically: dotnet new stylet -F netcoreapp3.1 -n MyStyletProject

    Alternatively, you can manually install the Stylet NuGet package and follow the Quick Start guide.

    dotnet new -i Stylet.Templates
    dotnet new stylet -n MyStyletProject