Validation with Caliburn.Micro

Is there a way to check text box input (using Regex) in a wpf application using Caliburn.Micro?

thanks

+6
source share
2 answers

I would suggest using an attribute based approach. Take a look at this article:

Verification in WPF

The approach here is mainly:

Inherit from the base class viewmodel validation. This, in turn, could well inherit from the base classes Caliburn Screen / Conductor / etc.

After that, all you need is an attribute of the properties you want to check. This is very well suited for the CM approach.

+3
source

I wrote a small plugin for CM to provide a reliable style check in the style of the builder. Feel free to use it: https://github.com/AIexandr/Caliburn.Micro.Validation

+5
source

Source: https://habr.com/ru/post/918677/


All Articles