Prevent the "broken image" icon from being displayed when an Image does not have an image source.
This commit is contained in:
parent
12c532fd3d
commit
915f96fd29
|
@ -138,7 +138,7 @@ namespace Ooui.Forms.Renderers
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var imageView = Control;
|
var imageView = Control;
|
||||||
if (imageView != null)
|
if (imageView != null && uiimage != null)
|
||||||
imageView.Source = uiimage;
|
imageView.Source = uiimage;
|
||||||
|
|
||||||
((IVisualElementController)Element).NativeSizeChanged ();
|
((IVisualElementController)Element).NativeSizeChanged ();
|
||||||
|
|
Loading…
Reference in New Issue