diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/ContentPageRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Renderers/ContentPageRenderer.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ContentPageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ContentPageRenderer.cs index 81a00a41..974cf384 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/ContentPageRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/ContentPageRenderer.cs @@ -34,8 +34,11 @@ namespace Xamarin.Forms.Platform.Tizen base.OnElementChanged(e); } - protected override void UpdateBackgroundColor() + protected override void UpdateBackgroundColor(bool initialize) { + if (initialize && Element.BackgroundColor.IsDefault) + return; + // base.UpdateBackgroundColor() is not called on purpose, we don't want the regular background setting if (Element.BackgroundColor.IsDefault || Element.BackgroundColor.A == 0) _page.Color = EColor.Transparent; @@ -48,8 +51,11 @@ namespace Xamarin.Forms.Platform.Tizen // empty on purpose } - void UpdateBackgroundImage() + void UpdateBackgroundImage(bool initiaize) { + if (initiaize && string.IsNullOrWhiteSpace(Element.BackgroundImage)) + return; + if (string.IsNullOrWhiteSpace(Element.BackgroundImage)) _page.File = null; else |