paulpatarinski / Xamarin.Forms.Plugins

Xamarin Forms Plugins
http://paulpatarinski.github.io/Xamarin.Forms.Plugins
MIT License
276 stars 141 forks source link

Error when CornerRadius is set #165

Closed stevekay72 closed 5 years ago

stevekay72 commented 5 years ago

I have a project that has been dormant for 2+ years that I have been asked to uplift to the latest Xamarin Forms. Everything is relatively ok except for an exception that gets thrown when I load a page containing a RoundedBoxView:

Multiple properties with the name ‘RoundedBoxView.Forms.Plugin.Abstractions.RoundedBoxView.CornerRadius’ found

When I remove, the CornerRadius property from the control then there is no error. As this property is settable, why am I getting this error with it set?

stevekay72 commented 5 years ago

It's ok I have discovered what the fault is. RoundedBoxView inherits from BoxView, and since May 2018, BoxView implements CornerRadius as a property and therefore the definition in RoundedBoxView is conflicting if set.

For the project I am updating, I have simply removed RoundedBoxView and replaced with BoxView as the only properties being used were the CornerRadius and FontFamily which are implemented in the base.