Skip to content

Button3d Class

A button control that is drawn with a shadow.

C#
[DataContract]
public class Button3d : ButtonBase

Inheritance objectControlBaseButtonBase

Creates an instance of the button control with the specified width and height.

C#
public Button3d(int width, int height)

width int
Width of the control.

height int
Height of the control (default is 1).

Generates the surface to be used by this control. This method is called internally to assign the Surface property a value.

C#
protected override ICellSurface CreateControlSurface()

ICellSurface
A surface that should be assigned to the Surface property.

Updates the ThemeState by calling RefreshTheme(Colors) with the provided colors. Override this method to adjust how colors are used by the ThemeState.

C#
protected override void RefreshThemeStateColors(Colors colors)

colors Colors
The colors to apply to the theme state.

Redraws the control if applicable.

C#
public override void UpdateAndRedraw(TimeSpan time)

time TimeSpan
The duration of thecurrent frame.