internal override NativeElement ToNative(NativeElement element)
        {
            var native = EnsureDerived<NativeFilledButton>(element);
            if (native == null)
            {
#if __ANDROID__ || __IOS__
                native = new NativeFilledButton(Rect.ToNative());
#elif WINDOWS_PHONE_APP
                native = new NativeFilledButton();
#endif
            }
            if (BackgroundColor != BandColor.Empty)
            {
                native.BackgroundColor = BackgroundColor.ToNative();
            }
            return base.ToNative(native);
        }
        internal override NativeElement ToNative(NativeElement element)
        {
            var native = EnsureDerived <NativeFilledButton>(element);

            if (native == null)
            {
#if __ANDROID__ || __IOS__
                native = new NativeFilledButton(Rect.ToNative());
#elif WINDOWS_PHONE_APP
                native = new NativeFilledButton();
#endif
            }
            if (BackgroundColor != BandColor.Empty)
            {
                native.BackgroundColor = BackgroundColor.ToNative();
            }
            return(base.ToNative(native));
        }
 internal FilledButton(NativeFilledButton native)
     : base(native)
 {
     BackgroundColor = native.BackgroundColor.FromNative();
 }
 internal FilledButton(NativeFilledButton native)
     : base(native)
 {
     BackgroundColor = native.BackgroundColor.FromNative();
 }