| | |
| | | [Browsable(false)] |
| | | public MaterialSkinManager SkinManager => MaterialSkinManager.Instance; |
| | | |
| | | public bool Focus() |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public new bool Focus() |
| | | { |
| | | return baseTextBox.Focus(); |
| | | } |
| | |
| | | Invalidate(); |
| | | } |
| | | } |
| | | |
| | | [Category("Material"), DefaultValue(""), Localizable(true), Description("Helper text conveys additional guidance about the input field, such as how it will be used.")] |
| | | public string NullValuePromptText |
| | | { |
| | | get => _nullValuePromptText; |
| | | set |
| | | { |
| | | _nullValuePromptText = value; |
| | | Invalidate(); |
| | | } |
| | | } |
| | | private string _nullValuePromptText; |
| | | |
| | | |
| | | private string _errorMessage; |
| | | |
| | |
| | | bool userTextPresent = !string.IsNullOrEmpty(Text); |
| | | Rectangle helperTextRect = new(LEFT_PADDING - _prefix_padding, LINE_Y + ACTIVATION_INDICATOR_HEIGHT, Width - (LEFT_PADDING - _prefix_padding) - _right_padding, HELPER_TEXT_HEIGHT); |
| | | Rectangle hintRect = new(_left_padding - _prefix_padding, HINT_TEXT_SMALL_Y, Width - (_left_padding - _prefix_padding) - _right_padding, HINT_TEXT_SMALL_SIZE); |
| | | int hintTextSize = 12; |
| | | int hintTextSize = 8; |
| | | |
| | | // bottom line base |
| | | g.FillRectangle(SkinManager.DividersAlternativeBrush, 0, LINE_Y, Width, 1); |
| | |
| | | new(destRect.Width, 0), |
| | | new(0, destRect.Height), |
| | | }, |
| | | destRect, GraphicsUnit.Pixel, grayImageAttributes); |
| | | destRect, GraphicsUnit.Pixel);// 不要灰色 , grayImageAttributes); |
| | | } |
| | | |
| | | //Create a pre - processed copy of the image(RED) |
| | |
| | | new(destRect.Width, 0), |
| | | new(0, destRect.Height), |
| | | }, |
| | | destRect, GraphicsUnit.Pixel, grayImageAttributes); |
| | | destRect, GraphicsUnit.Pixel);//, grayImageAttributes); |
| | | } |
| | | |
| | | //Create a pre - processed copy of the image(RED) |