private void loadBtnFontSize(ButtonFontSize enmBtnFontSize) { switch (enmBtnFontSize) { case ButtonFontSize.Small: this.FontSize = 12; break; case ButtonFontSize.Medium: this.FontSize = 16; break; case ButtonFontSize.Large: this.FontSize = 20; break; default: break; } }
public BaseTextBox(string strName, double dblHeight, double dblWidth, int intMaxLength, VerticalAlignment enmVerticalAlignment, HorizontalAlignment enmHorizontalAlignment, Thickness tcsPadding, ButtonFontSize enmButtonFontSize, Theme enmTheme) : base() { this.Name = strName; this.Height = this.dblHScale(dblHeight); this.Width = this.dblWScale(dblWidth); this.VerticalAlignment = enmVerticalAlignment; this.HorizontalAlignment = enmHorizontalAlignment; this.Padding = tcsPadding; this.loadBtnFontSize(enmButtonFontSize); this.loadTheme(enmTheme); this.MaxLength = intMaxLength; }
public BaseLabel(string strName, string strContent, SolidColorBrush scbForeground, VerticalAlignment enmVerticalAlignment, HorizontalAlignment enmHorizontalAlignment, bool booFocusable, ButtonFontSize enmButtonFontSize) : base() { this.Name = strName; this.Content = strContent; this.Foreground = scbForeground; this.VerticalAlignment = enmVerticalAlignment; this.HorizontalAlignment = enmHorizontalAlignment; this.Focusable = booFocusable; this.loadBtnFontSize(enmButtonFontSize); }
public BaseButton(string strName, string strContent, SolidColorBrush scbForeground, VerticalAlignment enmVerticalAlignment, HorizontalAlignment enmHorizontalAlignment, ButtonFontSize enmBtnFontSize) : base(true) { this.Name = strName; this.Content = strContent; this.Foreground = scbForeground; this.VerticalAlignment = enmVerticalAlignment; this.HorizontalAlignment = enmHorizontalAlignment; this.loadBtnFontSize(enmBtnFontSize); this.loadStyle(); }