rrmanzano / maui-bindableproperty-generator

Source generator that automatically transforms fields into BindableProperties that can be used in MAUI
MIT License
135 stars 10 forks source link

Feature Request #11

Open KannanKrish opened 1 year ago

KannanKrish commented 1 year ago

Overriding Property option will be nicer.

[AutoBindable(OnChanged = nameof(OnBackgroundColorChanged))] 
private Color backgroundColor;

to support,

[AutoBindable(OnChanged = nameof(OnBackgroundColorChanged))] 
private new Color backgroundColor;

It will helps me to override existing behaviors in custom controls.

SF-Simon commented 1 year ago

I think this is clearer than the expression HidesUnderliningProperty=true.

rrmanzano commented 1 year ago

Hi, thanks for the feedback, probably I can include this option in the next release and we can have both options and the dev can decide which option want to use, I will keep you guys updated.