Class LayoutContainer
Inheritance
Namespace: FM.LiveSwitch.Cocoa
Assembly: FM.LiveSwitch.Cocoa.dll
Syntax
public class LayoutContainer : UIView
Constructors
LayoutContainer(CGRect)
Initializes a new instance of the Layout
Declaration
public LayoutContainer(CGRect rect)
Parameters
Type | Name | Description |
---|---|---|
CGRect | rect | The rect. |
Properties
Frame
Coordinates of the view relative to its container.
Declaration
public override CGRect Frame { get; set; }
Property Value
Type | Description |
---|---|
CGRect | The value of this property is in points, not pixels. |
Remarks
The UIKit.this
UIKit.
The following example shows just one way the UIKit.flowerView
remains [{0,0},{100,100}].
var flowerView = new UIImageView(new RectangleF(100, 100, 100, 100)) {
Image = UIImage.FromFile("flower.png"),
ContentMode = UIViewContentMode.Center,
ClipsToBounds = true
};
flowerView.Transform = CGAffineTransform.MakeRotation((float) Math.PI / 4);
view.AddSubview(flowerView);
When changes are done to this property, the UIKit.
Changing this property will not trigger a call to UIKit.
At least on iOS 6 and later, changing this property causes the a re-layout of the subviews, even if the dimensions are the same. This can cause performance problems as some views (like UITableView) can perform some very expensive computations when they are laid out.
If your UIKit.
This property participates in the implicit animation protocol, changing it outside of a transaction will trigger an implicit animation for its values.
If you change the UIKit.