Table of Contents

Class ImageStateSkin

Namespace
PluginUI
Assembly
PluginUI.dll

One image per state: off/on (toggles), optional hover, pressed and disabled variants.

public sealed class ImageStateSkin : IControlSkin
Inheritance
ImageStateSkin
Implements
Inherited Members

Constructors

ImageStateSkin(ImageSource, ImageSource?)

Creates a state skin.

public ImageStateSkin(ImageSource normal, ImageSource? active = null)

Parameters

normal ImageSource
active ImageSource

Properties

Active

On / active image (StateIndex > 0).

public ImageSource? Active { get; }

Property Value

ImageSource

Disabled

Image while disabled (optional).

public ImageSource? Disabled { get; init; }

Property Value

ImageSource

Fit

Fitting mode.

public ImageFit Fit { get; init; }

Property Value

ImageFit

Hover

Image while hovered (optional).

public ImageSource? Hover { get; init; }

Property Value

ImageSource

Normal

Normal / off image.

public ImageSource Normal { get; }

Property Value

ImageSource

Pressed

Image while pressed (optional).

public ImageSource? Pressed { get; init; }

Property Value

ImageSource

Methods

Render(DrawingContext, Control, in SkinState)

Draws the control for the given state.

public void Render(DrawingContext dc, Control control, in SkinState state)

Parameters

dc DrawingContext
control Control
state SkinState