[]
        
(Showing Draft Content)

C1.Android.Core.C1Icon

C1Icon Class

Represents a visual icon that can be tinted and resized.

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

Constructors

Name Description
C1Icon(Context)

Initializes a new instance of the C1Icon class.

C1Icon(Context, IAttributeSet)

Initializes a new instance of the C1Icon class.

C1Icon(Context, IAttributeSet, int)

Initializes a new instance of the C1Icon class.

C1Icon(nint, JniHandleOwnership)

Fields

Name Description
DEFAULT_HEIGHT

The default height of an icon.

DEFAULT_WIDTH

The default width of an icon.

RenderHeightProperty

Identifies the RenderHeight dependency property.

RenderWidthProperty

Identifies the RenderWidth dependency property.

Properties

Name Description
RenderHeight

Gets the height of the icon. If Nan, the arrange height will be used.

RenderWidth

Gets the width of the icon. If Nan, the arrange width will be used.

Methods

Name Description
Clone()

Creates a copy of the icon.

CloneOverride()

When overridden, it creates a copy of the icon.

Dispose(bool)
GetIntrinsicIconSize()

Gets the intrinsic size of the icon.

OnAttachedToWindow()
OnDetachedFromWindow()
OnMeasure(int, int)
OnRenderHeightChanged(double, double)

Called when RenderHeightProperty changed.

OnRenderWidthChanged(double, double)

Called when RenderWidthProperty changed.