[]
Represents an icon created from an image.
public class BitmapIconElement : IconElement, ISupportUia
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. Caution: Resizing bitmaps at runtime might hurt application performance and result in blurry images. Consider using fixed-size images where possible.
Name | Description |
---|---|
BitmapIconElement() | Initializes a new instance of the BitmapIconElement class. |
BitmapIconElement(C1BitmapIcon) | Initializes a new instance of the BitmapIconElement class. |
BitmapIconElement(C1BitmapIcon, Style) | Initializes a new instance of the BitmapIconElement class. |
BitmapIconElement(string) | Initializes a new instance of the BitmapIconElement class. |
Name | Description |
---|---|
ShouldResize | Determines whether icon image should be resized according to the C1Icon element size. |
ShowAsMonochrome | Gets or sets a value that indicates whether the bitmap is shown in a single color. |
Source | Gets or sets the image source. |
Stretch | Gets or sets a Stretch enumeration value that describes how the shape fills its allocated space. |
Name | Description |
---|---|
GetImage(ref Image, int, int) | Gets the image represented by this C1Icon. |
InitializeUI() | Initializes the UI. |
OnIconChanged(C1Icon, PropertyChangedEventArgs) | Updates element pproperties on icon property changes. |