Table of Contents

Method SetImageLightDark

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetImageLightDark(VisualControlState, Image?)

Sets the specified image for both light and dark themes in the given visual control state.

public virtual void SetImageLightDark(VisualControlState state, Image? image)

Parameters

state VisualControlState

The visual control state for which the image is being set.

image Image

The image to associate with the specified state. Can be null to remove the image.

Remarks

This method applies the same image to both the light and dark theme variations of the specified visual control state.