Auto validation of properties in Caliburn.Micro -


so i'm messing around bit caliburn.micro, , notice interesting.

i have viewmodel property called maximum of type int, auto bound cm via naming convention, textbox.

when enter not , integer, i.e. character, textbox' border turns red, , setter of property not called.

is auto-feature of cm?

no, behaviour of wpf. 1 option bind string property on view model, , perform validation within view model (i.e. parse int, , provide default value if parse fails).


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -