I am using Xamarin.Forms (latest version). My images are organized in asset catalogs.
I have splash screen images in Resources\Images.xcassets\LaunchImage.launchimage asset catalog. Images have build action set to ImageAsset.
How to load image in code behind, in for example ContentPage, from asset catalog?
I tired: myViewModel.BackgroundImage = @LaunchImage.launchimage/Default.png; and other combinations but without success.
Thanks in advance.