Comments (5)
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.
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.
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.
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.
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)
- [BUG] Plugin.Popups.Maui on iOS navigate to new page when showing popup Page HOT 10
- [BUG] Absolute navigation not working on iOS HOT 3
- [BUG] Wiring view models for pages in tabbed page are done by name HOT 1
- [BUG] Popup Dialog can't fullscreen and also DialogLayout.CloseOnBackgroundTapped not working. HOT 5
- Add CloseDialog to IDialogService or Extension Method
- [BUG] Prism and MauiCompatibility are incompatibile on Windows HOT 6
- [BUG] Page.OnBackButtonPressed not called in MAUI Android HOT 12
- [BUG] Android hardware back button causes app to go to background when pressed on a TabbedPage inside a NavigationPage
- [BUG] Navigation Uri results in NullReferenceException
- [BUG] GoBackTo/GoBack can't return to a tabbed page HOT 4
- [BUG] BindingContext never cleared on Android after #3151 was merged
- [Enhancement] [TabbedPage] Configure TabbedPage Title HOT 4
- [BUG] CS8012 on publish net8.0-ios HOT 7
- [BUG] Popup Dialog does not open when called from a Service after using Absolute Navigation.
- [BUG] Object reference not set to an instance of an object when UseMauiCompatibility is enabled
- [BUG] Different Navigation Result between NavigateAsync(String) or NavigateAsync(Uri) when using RelativeBack() or ".." as Segment
- [BUG] Keyed services not supported
- [BUG] Pages remain in memory after absolute navigation and garbage collection HOT 1
- [BUG] Using Rules for DryIocContainerExtensions throws NavigationException HOT 1
- [Enhancement] Support Dialog ViewModel initialization HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prism.