ShinobiControls Xamarin Bindings Documentation

ShinobiEssentials : Shinobi.Essentials Namespace

SEssentialsStyle Class

The base class for all styles in Shinobi.Essentials

Syntax

[Foundation.Register("SEssentialsStyle", true)]
public class SEssentialsStyle : Foundation.NSObject

Remarks

SEssentialsStyle is the base class for all styles in Shinobi.Essentials. Each control has its own particular style object, which it uses to determine its appearance.

SEssentialsStyle objects are initialized from an instance of SEssentialsTheme. The theme is the base on which any concrete style object is built. This allows us to ensure that controls across an application have a common look and feel.

Style objects can be initialized with or without a particular theme. If a style object is not initialized with a concrete instance of a theme, it uses the global theme provided by SEssentialsTheme.

All concrete style classes inherit from this base class.

Requirements

Namespace: Shinobi.Essentials
Assembly: ShinobiEssentials (in ShinobiEssentials.dll)
Assembly Versions: 2.8.0.4

Members

See Also: Inherited members from Foundation.NSObject.

Public Constructors

Default constructor.
Initialize the style with a particular theme.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects.

Public Properties

[read-only]
override
ClassHandle IntPtr . The handle for this class.
Theme SEssentialsTheme . DEPRECATED: We create a style object with a theme, but we no longer hold a persistent reference to it.

Public Methods

ApplyTheme (SEssentialsTheme)
Applies the properties of the specified theme to this style object.

Protected Methods

override
Dispose (bool)
Releases unmanaged resources.

Member Details

SEssentialsStyle Constructor

Default constructor.

Syntax

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

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Shinobi.Essentials
Assembly: ShinobiEssentials (in ShinobiEssentials.dll)
Assembly Versions: 2.8.0.4

SEssentialsStyle Constructor

Constructor to call on derived classes to skip initialization and merely allocate the object.

Syntax

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

Parameters

t
Unused sentinel value

Remarks

You should not invoke this method directly.

Requirements

Namespace: Shinobi.Essentials
Assembly: ShinobiEssentials (in ShinobiEssentials.dll)
Assembly Versions: 2.8.0.4

SEssentialsStyle Constructor

Initialize the style with a particular theme.

Syntax

[Foundation.Export("initWithTheme:")]
public SEssentialsStyle (SEssentialsTheme theme)

Parameters

theme
The theme

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Shinobi.Essentials
Assembly: ShinobiEssentials (in ShinobiEssentials.dll)
Assembly Versions: 2.8.0.4

SEssentialsStyle Constructor

A constructor used when creating managed representations of unmanaged objects.

Syntax

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

Parameters

handle
Handle of the unmanaged object

Remarks

You should not invoke this method directly.

Requirements

Namespace: Shinobi.Essentials
Assembly: ShinobiEssentials (in ShinobiEssentials.dll)
Assembly Versions: 2.8.0.4

ApplyTheme Method

Applies the properties of the specified theme to this style object.

Syntax

[Foundation.Export("applyTheme:")]
public virtual void ApplyTheme (SEssentialsTheme theme)

Parameters

theme
Documentation for this section has not yet been entered.

Remarks

Each concrete style implementation will use the properties of the theme in its own way.

For example, the progress indicator style will use the secondary tint color on the theme to set its tint color.

Requirements

Namespace: Shinobi.Essentials
Assembly: ShinobiEssentials (in ShinobiEssentials.dll)
Assembly Versions: 2.8.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

Documentation for this section has not yet been entered.

Requirements

Namespace: Shinobi.Essentials
Assembly: ShinobiEssentials (in ShinobiEssentials.dll)
Assembly Versions: 2.8.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.Essentials
Assembly: ShinobiEssentials (in ShinobiEssentials.dll)
Assembly Versions: 2.8.0.4

Theme Property

DEPRECATED: We create a style object with a theme, but we no longer hold a persistent reference to it.

Syntax

[System.Obsolete("Use ApplyTheme instead", false)]
[get: Foundation.Export("theme", ObjCRuntime.ArgumentSemantic.Strong)]
[set: Foundation.Export("setTheme:", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual SEssentialsTheme Theme { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

If you wish to update your style object with a theme, you should call ApplyTheme instead.

This defaults to use the global theme but when set it can listen to a specific theme.

Requirements

Namespace: Shinobi.Essentials
Assembly: ShinobiEssentials (in ShinobiEssentials.dll)
Assembly Versions: 2.8.0.4