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
normalImageSourceactiveImageSource
Properties
Active
On / active image (StateIndex > 0).
public ImageSource? Active { get; }
Property Value
Disabled
Image while disabled (optional).
public ImageSource? Disabled { get; init; }
Property Value
Fit
Fitting mode.
public ImageFit Fit { get; init; }
Property Value
Hover
Image while hovered (optional).
public ImageSource? Hover { get; init; }
Property Value
Normal
Normal / off image.
public ImageSource Normal { get; }
Property Value
Pressed
Image while pressed (optional).
public ImageSource? Pressed { get; init; }
Property Value
Methods
Render(DrawingContext, Control, in SkinState)
Draws the control for the given state.
public void Render(DrawingContext dc, Control control, in SkinState state)
Parameters
dcDrawingContextcontrolControlstateSkinState