diff --git a/ui/image/image-common.ts b/ui/image/image-common.ts index 1b4e4046f..87db37271 100644 --- a/ui/image/image-common.ts +++ b/ui/image/image-common.ts @@ -40,11 +40,10 @@ function onSrcPropertyChanged(data: dependencyObservable.PropertyChangeData) { } else if (value instanceof imageSource.ImageSource) { // Support binding the imageSource trough the src propoerty - image.imageSource = null; image.imageSource = value; } else { - image._setNativeImage(value); + image.imageSource = imageSource.fromNativeSource(value); } }