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
Roman Shapiro edited this page Jul 14, 2018
·
9 revisions
Restyling through code is easy. There's a static object Stylesheet.Current that contains all default widget styles.
I.e. following code will make all textblocks green:
Now every TextBlock created with empty constructor will have green text.
Note. The default style is being applied to the widget in the moment of the creation. Therefore all changes
to Stylesheet.Current should be done before the UI is created.