Update Background 11/123611/4
authorsung-su.kim <sung-su.kim@samsung.com>
Thu, 6 Apr 2017 07:29:30 +0000 (16:29 +0900)
committersung-su.kim <sung-su.kim@samsung.com>
Thu, 6 Apr 2017 08:27:10 +0000 (17:27 +0900)
- Background.Image can be nullable.

Change-Id: I1f1f520877845ca0b130da3909f2f73da9f44841

Tizen.Xamarin.Forms.Extension.Renderer/BackgroundRenderer.cs
Tizen.Xamarin.Forms.Extension/Background.cs

index b48ba66..8c37e9a 100644 (file)
@@ -46,7 +46,9 @@ namespace Tizen.Xamarin.Forms.Extension.Renderer
 
         void UpdateImage()
         {
-            if (Element.Image != null)
+            if (Element.Image == null)
+                Control.File = "";
+            else
                 Control.File = ResourcePath.GetPath(Element.Image.File);
         }
 
@@ -75,4 +77,4 @@ namespace Tizen.Xamarin.Forms.Extension.Renderer
             }
         }
     }
-}
\ No newline at end of file
+}
index 9277572..710bf9e 100644 (file)
@@ -24,6 +24,7 @@ namespace Tizen.Xamarin.Forms.Extension
         /// Gets or Sets the Image on the background.
         /// This identifier is the image path to the image.
         /// This is a bindable property.
+        /// It can be nullable.
         /// </summary>
         public FileImageSource Image
         {
@@ -43,4 +44,4 @@ namespace Tizen.Xamarin.Forms.Extension
             set { SetValue(OptionProperty, value); }
         }
     }
-}
\ No newline at end of file
+}