Coder Social home page Coder Social logo

thomasclaudiushuber / mvvmgen-samples Goto Github PK

View Code? Open in Web Editor NEW
46.0 7.0 5.0 585 KB

Contains sample applications built with .NET, XAML, and MvvmGen.

License: MIT License

C# 100.00%
mvvm xaml winui wpf maui uno csharp source-generator uno-platform xamarin-forms

mvvmgen-samples's Introduction

MvvmGen Samples

This repository contains .NET projects that show how to use the MvvmGen library to build XAML applications with the Model-View-ViewModel-pattern, also known as MVVM.

This repository contains the following samples

  • EmployeeManager - a multi-project solution that has ViewModels in a separate .NET class library project. There are two client projects: WPF and WinUI. Look at this solution to learn how to
    • generate ViewModels with MvvmGen
    • use MvvmGen's EventAggregator
    • use MvvmGen's ViewModelFactory
    • set up Dependency Injection
    • write unit tests
  • MobileFlyoutApp - a Xamarin.Forms Flyout app created with the Visual Studio project template. The ViewModels are adjusted to use code generation with MvvmGen
  • RegistrationScreen - a simple WPF app that shows you how to generate properties and commands with MvvmGen.

Learn more about MvvmGen in the MvvmGen repository

mvvmgen-samples's People

Contributors

thomasclaudiushuber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mvvmgen-samples's Issues

RegistrationScreen.Wpf fails to build

When building or rebuilding the solution RegistrationScreen the following errors appear in the Output Window:
1>D:\Users...\mvvmgen-samples\RegistrationScreen\RegistrationScreen.Wpf\ViewModel\MainViewModel.cs(31,35,31,44): error CS0103: The name 'FirstName' does not exist in the current context
1>Done building project "RegistrationScreen.Wpf_mtlcf25z_wpftmp.csproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

I briefly see this error appear in my Error List window, but then it disappears on its own. The project still fails to run/debug or build.
Could the compiler be "catching" this error during the build before the source generators can finish generating the code?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.