Hello,
Welcome to our Microsoft Q&A platform!
Yes, you can add following code in your VC.
[Register("UIViewController1")]
public class UIViewController1 : UIViewController
{
public UIViewController1()
{
}
public override void DidReceiveMemoryWarning()
{
// Releases the view if it doesn't have a superview.
base.DidReceiveMemoryWarning();
// Release any cached data, images, etc that aren't in use.
}
public override void ViewDidLoad()
{
// View = new UniversalView();
base.ViewDidLoad();
// Perform any additional setup after loading the view
UIImageView textView = new UIImageView();
textView.Image = UIImage.FromBundle("test");
textView.Frame = UIScreen.MainScreen.Bounds;
textView.InsetsLayoutMarginsFromSafeArea = false;
this.View.Add(textView);
}
}
I add my test.png image to the Asset
Here is my running screenshot.
Best Regards,
Leon Lu
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.