[]
        
(Showing Draft Content)

C1.Android.Core.C1BitmapIcon

C1BitmapIcon Class

Represents an icon created from an image.

Inheritance
C1BitmapIcon
Namespace: C1.Android.Core
Assembly: C1.Android.Core.dll
Syntax
public class C1BitmapIcon : C1Icon, IDependencyObject, ICloneable
Public Class C1BitmapIcon
    Inherits C1Icon
    Implements IDependencyObject, ICloneable
Remarks

The file that you use should be a solid image on a transparent background. The bitmap image is expected to be a true bitmap that has transparent pixels and non-transparent pixels. The recommended format is PNG. Other file-format image sources will load but result in a solid block of the foreground color.

Constructors

Name Description
C1BitmapIcon(Context)

Initializes a new instance of the C1BitmapIcon class.

C1BitmapIcon(Context, IAttributeSet)

Initializes a new instance of the C1BitmapIcon class.

C1BitmapIcon(Context, IAttributeSet, int)

Initializes a new instance of the C1BitmapIcon class.

C1BitmapIcon(nint, JniHandleOwnership)

Fields

Name Description
ShowAsMonochromeProperty

Identifies the ShowAsMonochrome dependency property.

SourceProperty

Identifies the Source dependency property.

Properties

Name Description
ShowAsMonochrome

Gets or sets a value that indicates whether the bitmap is shown in a single color.

Source

Gets or sets the image source.

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()
OnDraw(Canvas)
OnLayout(bool, int, int, int, int)
SetImageResource(int)