How do i set an image from Uno?
TabContent content = new TabContent( );
TabContent.IconPath = “my/path/image.png”;
button.mxImage.File = import BundleFile(content.IconPath);
This fails with the error
There is nothing named ‘content’ accessible in this scope. Did you perhaps misspell ‘Content’ (as in Experimental.Net.Http.HttpRequest.Content), ‘Content’ (as in Experimental.Net.Http.HttpResponse<>.Content) or ‘Content’ (as in Experimental.Net.Http.HttpResponse.Content), or one of 13 other similar candidates? Could you be missing a package reference? - /Users/Sean/Documents/ZpindlerMain/UIComponents/UIComponents/TabViewer/TabViewer.ux.uno(81:43):E
Argument must be a constant value - (0:0):E
I am able to set the image when writing the path directly into import BundleFile