public ImageTextButtonStyle(ImageTextButtonStyle style) : base(style) { ImageUp = style.ImageUp; ImageDown = style.ImageDown; ImageOver = style.ImageOver; ImageChecked = style.ImageChecked; ImageCheckedOver = style.ImageCheckedOver; ImageDisabled = style.ImageDisabled; }
public ImageTextButton(string text, ImageTextButtonStyle style) : base(style) { _style = style; Defaults().Configure.Space(3); _image = new Image(); _image.Scaling = Scaling.Fit; Add(_image); _label = new Label(text, new LabelStyle(style.Font, style.FontColor)); _label.SetAlignment(Alignment.Center); Add(_label); Width = PrefWidth; Height = PrefHeight; }