Hey. I am coming from a WPF background and have just started working in Visual Studio with Xamarin and need some help with the layout.
Here is my scenario:
I want an Image Control on the page. I want to be able to control its Position and Width/Height manually (this is based on some criteria which isn't important right now).
So what I have done so far is try to create a very simple test, but can't get it to change to size/position of the control (it shows the image fine).
I just went onto the designer, dropped a UIImageView on the page (just in the middle for now). Then in the codebehind in ViewDidLoad() I am trying to change the position and size.
ImageView.Frame = new CoreGraphics.CGRect(0, 0, 30, 60);
ImageView.ContentMode = UIViewContentMode.ScaleAspectFit;
But it doesn't change it at all.
My question is: What do I need to do to be able to manipulate this object in the code-behind?
Any help would be appreciated.