iOS Guides | Samples

MonoTouch.UIKit.UIAttachmentBehavior Class

Specifies a IUIDynamicItem's attachment to a reference point or to another IUIDynamicItem.

See Also: UIAttachmentBehavior

Syntax

[MonoTouch.Foundation.Register("UIAttachmentBehavior", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 7, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class UIAttachmentBehavior : UIDynamicBehavior

Remarks

The UIAttachmentBehavior.AnchorPoint can be moved after creation.

Application developers can specify a spring-based attachment using the UIAttachmentBehavior.Frequency and UIAttachmentBehavior.Damping properties.

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIAttachmentBehavior are listed below.

See Also: UIDynamicBehavior

Public Constructors

A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.
Constructs an attachment behavior connecting the center point of one dynamic item to the center point of a second dynamic item.
Constructs an attachment behavior connecting a specific point in one dynamic item to an anchor point of a second dynamic item.
Constructs an attachment behavior connecting a specific point in one dynamic item to an anchor point of a second dynamic item.
Constructs an attachment behavior connecting a specific point in one dynamic item to a specific point in a second dynamic item.

Public Properties

AnchorPointPointF. The anchor point for an attached UIAttachmentBehaviorTypeAnchor.
[read-only]
AttachedBehaviorTypeUIAttachmentBehaviorType. The type of the attachment behavior. Read-only.
AttachmentRangeUIFloatRange. The attachment area for a sliding attachment.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
DampingSingle. Amount of damping for application to the attachment behavior.
FrequencySingle. The oscillation frequency of the attachment behavior.
FrictionTorqueSingle. The resistance to rotation, in arbitrary units.
[read-only]
ItemsIUIDynamicItem[]. The IUIDynamicItems that are affected by this UIAttachmentBehavior.
LengthSingle. The distance, in points, between the two attachment points of the attachment behavior.

Public Methods

static
CreateFixedAttachment(IUIDynamicItem, IUIDynamicItem, PointF) : UIAttachmentBehavior
Static factory method to create a fixed attachment.
static
CreateLimitAttachment(IUIDynamicItem, UIOffset, IUIDynamicItem, UIOffset) : UIAttachmentBehavior
Static factory method to create attachments that limit how far two items can be from each other.
static
CreatePinAttachment(IUIDynamicItem, IUIDynamicItem, PointF) : UIAttachmentBehavior
Static factory method to create a fixed-point attachment.
static
CreateSlidingAttachment(IUIDynamicItem, PointF, CGVector) : UIAttachmentBehavior
Static factory method to create an attachment in which item slides along the translationAxis.
static
CreateSlidingAttachment(IUIDynamicItem, IUIDynamicItem, PointF, CGVector) : UIAttachmentBehavior
Static factory method to create a sliding attachment between two items.