I'm using Xamarin.Forms mixed with some native Xamarin code. Now I'd like to get a UIButton instance from a Xamarin.Forms.Button. How can I do that?
In the Clicked
event handler, I can see
void Share_Clicked(object sender, System.EventArgs e)
{
var button = sender as Xamarin.Forms.Button;
if(button.EffectControlProvider != null)
{
}
}
I can see EffectControlProvider.Controller is actually of UIButton type but I can't convert to it.
Is there any funciton like ToNative to get the UIButton?