MonoMac.CoreAnimation.CAShapeLayer Class
Draws a bezier curve and composes the result with its first sublayer.

See Also: CAShapeLayer Members

Syntax

[MonoMac.Foundation.Register("CAShapeLayer", true)]
public class CAShapeLayer : CALayer

Remarks

When you want to use one of the CALayer subclasses as your UIView's backing layer, you need to add the following code snippet to your class:

C# Example

class MyView : UIView {
    //
    // This instructs the runtime that whenever a MyView is created
    // that it should instantiate a CAShapeLayer and assign that to the
    // UIView.Layer property
    //
    [Export ("layerClass")]
    public static Class LayerClass () {
        return new Class (typeof (CAShapeLayer));
    }
}
  

Requirements

Namespace: MonoMac.CoreAnimation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0