Is there an easy way to change header font size without overwriting completely duplicating ColumnHeaderTemplate?
Note: Not sure if it is relevant, but I use an application theme (PresentationFramework.Royale) which provides the ColumnHeaderTemplate.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you aren’t also applying a style to the Column Headers, you could use that. And even if you are, by setting the BasedOn property on the style you can maintain everything but what you want to change.
Edit:
I Haven’t used the built in themes before, so I tested this out. The PresentationFramework.Royale theme isn’t actually applying a template to the column headers. It is applying a Style which uses a setter to apply the ControlTemplate like recommended.
So, in order to keep the Royale theme on the Column Headers we do need to use the BasedOn property of the Style we created. Here’s the updated Style deffinition that will both allow you to modify what you like, and retain the Royale Theme: