Button3d Class
Definition
Section titled “Definition”A button control that is drawn with a shadow.
[DataContract]public class Button3d : ButtonBaseInheritance object → ControlBase → ButtonBase
Constructors
Section titled “Constructors”Button3d(int, int)
Section titled “Button3d(int, int)”Creates an instance of the button control with the specified width and height.
public Button3d(int width, int height)Parameters
Section titled “Parameters”width int
Width of the control.
height int
Height of the control (default is 1).
Methods
Section titled “Methods”CreateControlSurface()
Section titled “CreateControlSurface()”Generates the surface to be used by this control. This method is called internally to assign the Surface property a value.
protected override ICellSurface CreateControlSurface()Returns
Section titled “Returns”ICellSurface
A surface that should be assigned to the Surface property.
RefreshThemeStateColors(Colors)
Section titled “RefreshThemeStateColors(Colors)”Updates the ThemeState by calling RefreshTheme(Colors) with the provided colors. Override this method to adjust how colors are used by the ThemeState.
protected override void RefreshThemeStateColors(Colors colors)Parameters
Section titled “Parameters”colors Colors
The colors to apply to the theme state.
UpdateAndRedraw(TimeSpan)
Section titled “UpdateAndRedraw(TimeSpan)”Redraws the control if applicable.
public override void UpdateAndRedraw(TimeSpan time)Parameters
Section titled “Parameters”time TimeSpan
The duration of thecurrent frame.