You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
For the StylableTextBox, we added HintForeColor and TextForeColor as a replacement of ForeColor. Depending on the current value (empty => show hint), either HintForeColor or TextForeColor will be used for ForeColor. To prevent any accidental use, we already added Browsable(false) and EditorBrowsable(EditorBrowsableState.Never) to not show this property in the GUI editor. Unfortunately, this does not always help:
Control c = new StylableTextBox();
c.ForeColor = Color.Blue;
As the ForeColor is available for Control it can be used without any hint that there is any issue with that.
Describe the solution you'd like
We want to go for 2 different options:
for Reflection, we will add a separate Attribute marking this setter for internal use only
for callers, we will reuse our existing errorhandling and create an error when used directly
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
For the
StylableTextBox
, we addedHintForeColor
andTextForeColor
as a replacement ofForeColor
. Depending on the current value (empty => show hint), eitherHintForeColor
orTextForeColor
will be used forForeColor
. To prevent any accidental use, we already addedBrowsable(false)
andEditorBrowsable(EditorBrowsableState.Never)
to not show this property in the GUI editor. Unfortunately, this does not always help:As the
ForeColor
is available forControl
it can be used without any hint that there is any issue with that.Describe the solution you'd like
We want to go for 2 different options:
The text was updated successfully, but these errors were encountered: