Read-Write property with Value conversion #3652
Unanswered
Chicagoan2016
asked this question in
Questions
Replies: 1 comment 1 reply
-
Sometimes the answer is to use a viewmodel (or equivalent UI framework things like value converters) to do this work. The business domain types should reflect the user workflow and thus are close to the needs of the UI, but sometimes there does need to be some presentation layer code to make things work for a specific UI design requirement that isn't really a business requirement. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello fellow Csla developers,
We have a small app where we have a couple of radio buttons for something like gender, one is for 'male' and the other for 'female'. (not exactly our use-case but just using it as an example). The values for gender are coming from a lookup table with rows as 'Male' and 'Female'.
One suggestion was to use two csla read-write properties
but I have never tried my versions of SetPropertyConvert and GetPropertyConvert.
I guess my question is about writing our custom SetPropertyConvert and GetPropertyConvert
Kind Regards
Beta Was this translation helpful? Give feedback.
All reactions