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

            if (native == null)
            {
#if __ANDROID__ || __IOS__
                native = new NativeFilledPanel(Rect.ToNative());
#elif WINDOWS_PHONE_APP
                native = new NativeFilledPanel();
#endif
            }
            if (BackgroundColor != BandColor.Empty)
            {
                native.BackgroundColor = BackgroundColor.ToNative();
            }
            native.BackgroundColorSource = BackgroundColorSource.ToNative();
            return(base.ToNative(native));
        }
Exemple #3
0
 internal FilledPanel(NativeFilledPanel native)
     : base(native)
 {
     BackgroundColor       = native.BackgroundColor.FromNative();
     BackgroundColorSource = native.BackgroundColorSource.FromNative();
 }
 internal FilledPanel(NativeFilledPanel native)
     : base(native)
 {
     BackgroundColor = native.BackgroundColor.FromNative();
     BackgroundColorSource = native.BackgroundColorSource.FromNative();
 }