Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alex-titarenko/mvvm
Lightweight MVVM framework (.NET Standard).
https://github.com/alex-titarenko/mvvm
c-sharp lightweight-mvvm-framework mvvm mvvm-framework net-standard nuget wpf
Last synced: 8 days ago
JSON representation
Lightweight MVVM framework (.NET Standard).
- Host: GitHub
- URL: https://github.com/alex-titarenko/mvvm
- Owner: alex-titarenko
- License: mit
- Created: 2015-03-02T22:43:02.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2021-02-10T06:00:58.000Z (almost 4 years ago)
- Last Synced: 2024-05-02T02:16:17.452Z (9 months ago)
- Topics: c-sharp, lightweight-mvvm-framework, mvvm, mvvm-framework, net-standard, nuget, wpf
- Language: C#
- Homepage:
- Size: 267 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# TAlex.Mvvm
![Build](https://github.com/alex-titarenko/mvvm/workflows/Build/badge.svg?branch=main)Lightweight MVVM framework for C#.
## Structure
* **TAlex.Mvvm** - provides base view model and relay command classes.
* **TAlex.Mvvm.Wpf** - WPF depended implementation of message service, application class extensions and some commands.## Example of usage
Defining view model:
```C#
// View Model
public class TestViewModel : ViewModelBase
{
private int _intProp;
private string _strProp;public int IntegerProperty
{
get { return _intProp; }
set { Set(ref _intProp, value); }
}public string StringProperty
{
get { return _strProp; }
set { Set(() => StringProperty, ref _strProp, value); }
}
}// PropertyChanged event
var target = new TestViewModel();
string actualPropName = null;
target.PropertyChanged += (e, a) => { actualPropName = a.PropertyName; };target.IntegerProperty = 3;
Console.WriteLine(actualPropName);
```## Get it on NuGet!
Install-Package TAlex.Mvvm
Install-Package TAlex.Mvvm.Wpf## License
TAlex.Common is under the [MIT license](LICENSE.md).