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
Post a Comment