You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a proposal of a new overloaded version of AvaloniaObject.SetAndRaise() which allows for a slight code simplification for the scenario of adding property to control that refers to control's component property, assuming no unnecessary backing fields. (I hope this is in English)
Please tell me if this makes sense?
Or maybe the whole thing can be written more elegantly already?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a proposal of a new overloaded version of AvaloniaObject.SetAndRaise() which allows for a slight code simplification for the scenario of adding property to control that refers to control's component property, assuming no unnecessary backing fields. (I hope this is in English)
Please tell me if this makes sense?
Or maybe the whole thing can be written more elegantly already?
Thanks to such a tool:
such code:
changes to this:
so, my hypothetical proposal is this:
and then my code would be like this:
Beta Was this translation helpful? Give feedback.
All reactions