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