[]
        
(Showing Draft Content)

C1.Android.Core.C1View

C1View Class

Base class for views supporting standard properties.

Implements
Namespace: C1.Android.Core
Assembly: C1.Android.Core.dll
Syntax
public abstract class C1View : ViewGroup, IDependencyObject
Public MustInherit Class C1View
    Inherits ViewGroup
    Implements IDependencyObject

Constructors

Name Description
C1View(Context)

Initializes a new instance of the C1View class.

C1View(Context, IAttributeSet)

Initializes a new instance of the C1View class.

C1View(Context, IAttributeSet, int)

Initializes a new instance of the C1View class.

C1View(nint, JniHandleOwnership)

Fields

Name Description
BorderBrushProperty

Identifies the BorderBrush dependency property.

BorderThicknessProperty

Identifies the BorderThickness dependency property.

CornerRadiusProperty

Identifies the CornerRadius dependency property.

FlowDirectionProperty

Identifies the FlowDirection dependency property.

ForegroundProperty

Identifies the Foreground dependency property.

InheritPropertiesProperty

Identifies the InheritProperties dependency property.

PaddingProperty

Identifies the Padding dependency property.

TextSizeProperty

Identifies the TextSize dependency property.

TypefaceProperty

Identifies the Typeface dependency property.

Properties

Name Description
BorderBrush

Gets or sets the Android.Graphics.Drawables.Drawable used to paint the border.

BorderThickness

Gets or sets the C1Thickness of the border.

CornerRadius

Gets or sets the C1CornerRadius of the border.

FlowDirection

Gets or sets the flow direction.

Foreground

Gets or sets the Android.Graphics.Drawables.Drawable used to paint the foreground (text and icons).

InheritProperties

Gets or sets whether the general purpose properties like foreground or fonts are inherited to the children automatically.

IsDisposed

Gets whether this instance is disposed.

Padding

Gets or sets the padding of the Content.

Style

Gets or sets the style of this view.

Tag

Gets or sets an arbitrary object value that can be used to store custom information about this element.

TextSize

Gets or sets the text size applied to the view.

Typeface

Gets or sets the typeface applied to the view.

Methods

Name Description
Dispose(bool)
OnAttachedToWindow()
OnBackgroundChanged()

Called when the background changed.

OnBorderBrushChanged()

Called when the border brush changed.

OnBorderThicknessChanged()

Called when the border thickness changed.

OnCornerRadiusChanged()

Called when the corner-radius changed.

OnDetachedFromWindow()
OnFlowDirectionChanged()

Called when the flow direction changed.

OnFontChanged()

Called when any of the font properties changed.

OnForegroundChanged()

Called when the foreground changed.

OnPaddingChanged()

Called when the padding changed.

OnStyleChanged()

Called when the style changed.