ShinobiControls Xamarin Bindings Documentation

ShinobiForms : Shinobi.Forms Namespace

SFormView Class

A view that represents a `ShinobiForm` model.

Syntax

[Foundation.Register("SFormView", true)]
public class SFormView : UIKit.UIView

Remarks

This view contains a number of `SFormSectionView`s.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

Members

See Also: Inherited members from UIKit.UIView.

Public Constructors

Default constructor.
Documentation for this section has not yet been entered.

Protected Constructors

Documentation for this section has not yet been entered.
A constructor used when creating managed representations of unmanaged objects.

Public Properties

[read-only]
override
ClassHandle IntPtr . The handle for this class.
FieldViewIterator ISFormFieldViewIterator . Iterates over the field views in the form.
KeyboardToolbar ISFormNavigationToolbar . The view to be placed above the keyboard when editing fields.
Layout ISFormLayout . Used to layout the sections added to this view.
Model ShinobiForm . The model being presented.
SectionViews SFormSectionView[]. The section views this form view displays.
SubmitButton UIKit.UIButton . When this button is pressed, the form's `submit` method is called.

Protected Methods

override
Dispose (bool)
Releases unmanaged resources.

Member Details

SFormView Constructor

Default constructor.

Syntax

[Foundation.Export("init")]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public SFormView ()

Remarks

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

SFormView Constructor

Documentation for this section has not yet been entered.

Syntax

[Foundation.Export("initWithCoder:")]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public SFormView (Foundation.NSCoder coder)

Parameters

coder
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

SFormView Constructor

Documentation for this section has not yet been entered.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected SFormView (Foundation.NSObjectFlag t)

Parameters

t
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

SFormView Constructor

A constructor used when creating managed representations of unmanaged objects.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
protected SFormView (IntPtr handle)

Parameters

handle
Handle of the unmanaged object

Remarks

You should not invoke this method directly.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

ClassHandle Property

The handle for this class.

Syntax

public override IntPtr ClassHandle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

Dispose Method

Releases unmanaged resources.

Syntax

protected override void Dispose (bool disposing)

Parameters

disposing
True if called by Dispose, false if called from a finalizer

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

FieldViewIterator Property

Iterates over the field views in the form.

Syntax

[get: Foundation.Export("fieldViewIterator")]
[set: Foundation.Export("setFieldViewIterator:")]
public virtual ISFormFieldViewIterator FieldViewIterator { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

This object is used to control the navigation order of fields in the form. Set this object to modify the navigation order of the fields.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

KeyboardToolbar Property

The view to be placed above the keyboard when editing fields.

Syntax

[get: Foundation.Export("keyboardToolbar")]
[set: Foundation.Export("setKeyboardToolbar:")]
public virtual ISFormNavigationToolbar KeyboardToolbar { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The keyboard toolbar view will be set as the `inputAccessoryView` for any text fields added to the form. By default this is an instance of `SFormToolbar`.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

Layout Property

Used to layout the sections added to this view.

Syntax

[get: Foundation.Export("layout")]
[set: Foundation.Export("setLayout:")]
public virtual ISFormLayout Layout { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The `layout` is used by `SFormView` in its `layoutSubviews` method. Setting this to nil will stop the view from doing any layout if you want to set frames manually. Default is an instance of the class `SFormLayoutAlignedVertically`.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

Model Property

The model being presented.

Syntax

[get: Foundation.Export("model")]
[set: Foundation.Export("setModel:")]
public virtual ShinobiForm Model { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

SectionViews Property

The section views this form view displays.

Syntax

[get: Foundation.Export("sectionViews")]
[set: Foundation.Export("setSectionViews:")]
public virtual SFormSectionView[] SectionViews { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4

SubmitButton Property

When this button is pressed, the form's `submit` method is called.

Syntax

[get: Foundation.Export("submitButton")]
[set: Foundation.Export("setSubmitButton:")]
public virtual UIKit.UIButton SubmitButton { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

A `UIButton` set on this property will add the parent form as a target, calling `submit` on the form for the event touch up inside. We provide a `UIButton` subclass, `SFormSubmitButton`, which is styled to match our form styling. By default the form's button will be `nil`.

Requirements

Namespace: Shinobi.Forms
Assembly: ShinobiForms (in ShinobiForms.dll)
Assembly Versions: 1.0.0.4