Hello I am trying to get an Image element in a typescript xml page and set it's imageSource property programatically.
In the examples i've found it is done this way:
image = page.getViewById("id");
image.imageSource = newImageSource;
error 'imageSource' does not exist on type 'View'
image = <Image> page.getViewById('whatever');
Should resolve the type issue. Make sure to import the image module so you have the correct class.