Go to file
Antony Male 5e97f9e1ea Merge branch 'release/1.3.6' 2021-02-28 11:40:31 +00:00
.github Add pull request template 2021-02-14 12:04:53 +00:00
Bootstrappers Bootstrappers: Make RootViewModel strongly typed 2021-02-14 11:22:28 +00:00
NuGet Tweak nuspcs and README 2019-09-25 12:36:16 +01:00
Samples await Tasks returned from Actions 2021-02-19 08:47:20 +00:00
Stylet Rename StyletIocBootstrapper to StyletIocBootstrapperBase 2021-02-28 11:39:47 +00:00
StyletIntegrationTests Explicitly target net5.0-windows 2020-11-28 12:18:14 +00:00
StyletTemplates Stylet.Templates: target .NET 5, and give an option to target .NET Core 3.1 2020-11-28 12:57:31 +00:00
StyletUnitTests Allow actions to have an explicit target 2021-02-19 08:47:19 +00:00
.gitattributes Use powershell, and powershell only, for Stylet.Start 2016-04-04 14:48:16 +01:00
.gitignore Add support for CommandBinding in Actions 2018-09-30 17:56:51 +01:00
CHANGELOG.txt Update changelog 2021-02-28 11:40:12 +00:00
LICENSE.txt Actually fill in the blanks in the license 2014-05-23 13:08:19 +01:00
README.md Stylet.Templates: target .NET 5, and give an option to target .NET Core 3.1 2020-11-28 12:57:31 +00:00
Rakefile Update MSBuild.SDK.Extras, and remove warning suppressions 2021-01-21 20:05:01 +00:00
Stylet.sln Add a .NET Core template 2019-09-24 14:51:33 +01:00
Stylet.sln.DotSettings Align style with ReSharper 2015-01-14 15:08:43 +00:00
StyletIcon.png First attempt at an icon 2014-04-19 00:17:08 +01:00
StyletIcon.svg First attempt at an icon 2014-04-19 00:17:08 +01:00

README.md

Project Icon Stylet

NuGet Build status

Introduction

Stylet is a small but powerful ViewModel-first MVVM framework for WPF (.NET 4.5+ and .NET Core 3.0+), which allows you to write maintainable and extensible code in a way which is easy to test. Stylet's aims are to:

  • Solve the blockers, niggles, and annoyances which hamper MVVM development without a framework, using simple but powerful concepts.
  • Be obvious to people picking up your project for the first time: there's very little magic
  • Be easy to verify/validate. The LOC count is low, and it comes with a very comprehensive test suite. The code is well-written and well-documented.
  • Be flexible while providing sensible defaults. Almost any part of the framework can be overridden if you wish, but you probably won't want to.

It is inspired by Caliburn.Micro, and shares many of its concepts, but removes most of the magic (replacing it with more powerful alternatives), and simplifies parts considerably by targeting only MVVM, WPF and .NET 4.5.

Getting Started

.NET 5.0+ / .NET Core

For .NET Core and .NET 5.0+ projects, the quickest way to get started is by using dotnet new with Stylet's template.

Open a command window where you want to create your new project, and install the Stylet templates using:

dotnet new -i Stylet.Templates

Then create a new .NET 5.0 project with:

dotnet new stylet -n MyStyletProject

(changing MyStyletProject as appropriate).

If you want to create a .NET Core 3.1 project, then:

dotnet new stylet -F netcoreapp3.1 -n MyStyletProject

If you want to set up your project manually, install the Stylet package, then follow the instructions in the Quick Start.

Stylet requires .NET 5.0+ or .NET Core 3.0+.

.NET Framework (<= .NET 4)

For .NET Framework projects, the quickest way to get started is to create a new "WPF Application" project, then install the NuGet package Stylet.Start. This will install Stylet, and set up a simple skeleton project.

See Quick Start for more details.

If you want to set up your project manually, install the Stylet package, then follow the instructions in the Quick Start.

Stylet requires .NET 4.5 (Visual Studio 2012 or higher).

Documentation

The Wiki is the documentation source. There's loads of information there - go and have a look, or start with the Quick Start.

Contributing

Contributions are always welcome. If you've got a problem or a question, raise an issue. If you've got code you want to contribute, please read the Contributing guidelines first of all. Create a feature branch off the develop branch, add your changes there, and submit it as a pull request.