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
{{ message }}
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.
Hello!
When using the blend theme I am unable to change the background color for individual controls. For example If I explicitly set a textbox Background to Red in xaml, the control will be shown in red in the editor preview but at runtime the textbox has the standard background color.
I did a bit of testing and the color that's actually being used is the background color of the ScrollViewer. So if I go and change the scrollviewer style in the Styles.xaml file then that color will be shown.
Any ideas why this is and how we can change it so that the background color can be overridden?
Thanks!
Mike
The text was updated successfully, but these errors were encountered:
Ok, so after a bit of experimenting it appears to work if I add the 'Background' property to the ScrollViewer in the TextBox style's control template and set to 'TemplateBinding Background'.
Is this the right way to go about it (other controls would also need this)?
Hello!
When using the blend theme I am unable to change the background color for individual controls. For example If I explicitly set a textbox Background to Red in xaml, the control will be shown in red in the editor preview but at runtime the textbox has the standard background color.
I did a bit of testing and the color that's actually being used is the background color of the ScrollViewer. So if I go and change the scrollviewer style in the Styles.xaml file then that color will be shown.
Any ideas why this is and how we can change it so that the background color can be overridden?
Thanks!
Mike
The text was updated successfully, but these errors were encountered: