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); }
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)); }
internal FilledPanel(NativeFilledPanel native) : base(native) { BackgroundColor = native.BackgroundColor.FromNative(); BackgroundColorSource = native.BackgroundColorSource.FromNative(); }