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

Unable to cast object of type 'XLabs.Forms.Controls.ExtendedButton' to type 'Xamarin.Forms.IRegister

$
0
0

Hi am getting error when creating custom renderer . Please help.

public class ExtendedButton : Button
{
public static BindableProperty HorizontalTextAlignmentProperty = BindableProperty.Create<ExtendedButton, Xamarin.Forms.TextAlignment>(x => x.HorizontalTextAlignment, Xamarin.Forms.TextAlignment.Start);
public Xamarin.Forms.TextAlignment HorizontalTextAlignment
{
get
{
return (Xamarin.Forms.TextAlignment)GetValue(HorizontalTextAlignmentProperty);
}
set
{
SetValue(HorizontalTextAlignmentProperty, value);
}
}
}


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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