Hello,
I need to change the color of a UIblock StaticText to red. I'm not using the Automation Toolkit. I've designed my Automation script using the old-fashioned UIBlockDefinition method. I am able to use the Style to change the size and case of the text;
blockStaticText.Style = Style.Text.Title1;
but that is not changing the color.
Any help is appreciated!
Hi Satrap,
I don't think changing the color of the StaticText in Automation is possible.
Kind Regards,
Jarno
Hi Satrap,
Unfortunately, as Jarno mentioned, directly changing the text color in a StaticText is not supported.
If your goal is to indicate an issue or highlight something important that is missing, you can achieve this by changing the ValidationState of a block (e.g, TextBox) to Invalid.
This will apply a red border like this:
Example:
Port1SourceIpAddress.ValidationState = UIValidationState.Invalid;
Much appreciated 🙂
Thanks, Jarno