Coder Social home page Coder Social logo

Comments (5)

briannoyes avatar briannoyes commented on August 26, 2024

You might want to check out my article here for a head start on that: http://blog.pluralsight.com/async-validation-wpf-prism

from prism.

briannoyes avatar briannoyes commented on August 26, 2024

FYI - will be working on porting the validation support from Prism for Windows Runtime to Prism for UWP in the next week or so. There are a couple of changes I would like to make in that process including making the validation mechanism more pluggable, and intend to try to make it so as much of it as possible can go into the base Prism PCL so it will support all Prism platforms.

from prism.

znakeeye avatar znakeeye commented on August 26, 2024

My custom ViewModelBase has this validation stuff (actually, I think I got it from Brian's article). Do you want me to create a PR or is this feature already in the workings?

from prism.

briannoyes avatar briannoyes commented on August 26, 2024

I've already got a specific design in mind, just need to find time to get to it. To me it would be inappropriate to put it on ViewModelBase because just as often it is the model objects that need the validation support and it would be weird to put a ViewModelBase base class on a model object. But one of the deficiencies of the original design in Prism for WinRT was that you needed the ViewModel(Base) class on your ViewModels for the navigation and state persistence support, but often wanted to have the validation support on the ViewModel properties as well, but could not achieve that with single inheritance in .NET. The other things we want to do include: put as much of the implementation in the Prism.Core PCL to avoid total duplication in the platform specific libraries, and have a pluggable mechanism for the specifics of how validation is performed so that you can either use the default strategy of Data Annotations (which are not supported in a PCL) or be able to plug in something else (i.e. the FluentValidation framework).

from prism.

lock avatar lock commented on August 26, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from prism.

Related Issues (20)

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.