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

Custom Button

$
0
0

I am working on a custom button and everything is going OK but I have a few concerns I would like to voice.

  1. The visibility of the functions/properties are not consistent from platform to platform. On Android I could override ButtonRenderer to get all the base stuff, override a method and make it work the way I want. On WP8 the class is internal... so I have to re-implement everything that the base ButtonRenderer has.
  2. While working through re-implementing the ButtonRenderer for WP8 I stumbled across something that basically put a complete stop to my efforts. On the standard Button object in Xamarin.Forms SendClicked is internal! I find that this function call is essential for creating a button renderer when we don't want to re-implement the base features of a button. This, of course, would not be an issue had I been able to inherit from the ButtonRenderer on WP8

It almost feels like Xamarin doesn't want us to be able to re-use the code they have for custom controls. I know that it has been said many times the Renderer API is not finalized but I have yet to see any sort of timeline or even hints if we will be waiting a week, a month, a year or beyond. I certainly don't want to have to re-implement everything (which would defeat the purpose of Xamarin.Forms) just to do some minor tweaks to some controls.


Viewing all articles
Browse latest Browse all 58056

Trending Articles