- Background.Image can be nullable.
Change-Id: I1f1f520877845ca0b130da3909f2f73da9f44841
void UpdateImage()
{
- if (Element.Image != null)
+ if (Element.Image == null)
+ Control.File = "";
+ else
Control.File = ResourcePath.GetPath(Element.Image.File);
}
}
}
}
-}
\ No newline at end of file
+}
/// 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
{
set { SetValue(OptionProperty, value); }
}
}
-}
\ No newline at end of file
+}