TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ken janka
NA
7
574
Increase FontSize and FontWeight of DataGridColumnHeader
May 29 2018 4:30 PM
The FontWeight of my DataGridColumnHeader is fine while developing in visual studio 2017 but once i launch the project, the text for the DataGridColumnHeader becomes faded. This is thesame for the DataGridComboBoxColumn. TextColumns work fine though. I found online that the best way to solve this problem is to use a TextBlock in the place of the DataGridColumnHeaderPresenter in the style of the DataGrid but i can'f find any help on how to acheive that.Also, No matter how much i increase the fontsize for the DataGridColumnHeader and the DataGridComboBoxColumn, it doesnt seem to change.
I know some developers will say i should add the following fragment to my DataGrid
<DataGrid.Resources>
<Style TargetType="{x:Type DataGridColumnHeader}">
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="FontSize" Value="26" />
</Style>
</DataGrid.Resources>
I have tried adding that but it doesn't work. I have edited the Template for the DataGrid, DataGridColumnHeader etc but no luck. Please i need urgent help.
Attachment:
DataGridCustom.zip
Reply
Answers (
2
)
MediaElements don't work as expected
Resizing and setting Events for WMPLib.WindowsMediaPlayer