Repository navigation
In the MVVM toolkit, is there a way to add a DisplayNameAttribute to the generated properties? #739
Answered
by
Sergio0694
Konstantin-tr
asked this question in
Q&A
|
I have an observable property generated from a field, now I need to change its display name but since I only have the field in my class, I can't actually apply the attribute (property only). Is there a way to work around this? |
Answered by
Sergio0694
Jul 17, 2023
Replies: 2 comments 3 replies
|
Actually, I just noticed something similar is possible via the DisplayAttribute, although that one is sadly sealed, making it a bit harder to use. Any other option would still be appreciated. |
0 replies
|
You can use |
3 replies
Answer selected by
Sergio0694
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
[property: DisplayName(...)]on the field to forward any attributes you need on the generated property 🙂