Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Button is not subclassing friendly

$
0
0

Let's say I want to reuse Button view with a different renderer. Everything seems fine except one can't invoke its SendClicked method (that in turn fires Clicked event and Command.Execute).
Why is SendClicked method that private is beyond me and a bad architectural choice.

Basically we are left with two ugly choices:
a) reimplement Clicked event
b) go full reflection


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>