This is a migrated thread and some comments may be shown as answers.

Font Scale (DPI)

3 Answers 51 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Mateusz
Top achievements
Rank 1
Mateusz asked on 09 Dec 2014, 03:11 PM
Hi,

I use TSSP file that changes the appearance of the entire application.
There is a problem with the appearance when the user has different font scaling setting in Windows (120 DPI).
Due to the nature of the project I need to get the same appearance of the application, regardless of the DPI.
So using VisualStyleBuilder I changed the font size from the point value to the pixel value (Segoe UI; 8,25pt => Segoe UI; 11px).
In Annex, you can see the result.
Font has the same size. But the size of the control type CommandBarButton is strange. It looks as if I set the padding (but padding is 0 for all).
How to get rid of the padding?
For other types of controls do not see this behavior.

3 Answers, 1 is accepted

Sort by
0
Mateusz
Top achievements
Rank 1
answered on 09 Dec 2014, 03:12 PM
Edit: Annex.
0
Mateusz
Top achievements
Rank 1
answered on 09 Dec 2014, 03:15 PM
Edit: Uploading png file not working so here http://imgur.com/iIuJAwj
0
Dimitar
Telerik team
answered on 12 Dec 2014, 12:44 PM
Hello Mateusz,

Thank you writing.

It appears that the text is not aligned properly in this case. You can set the alignment like this:
commandBarButton1.TextAlignment = ContentAlignment.MiddleLeft;

Could you please try that and and let me know how it works on your side?

I am looking forward to your reply.
 
Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Themes and Visual Style Builder
Asked by
Mateusz
Top achievements
Rank 1
Answers by
Mateusz
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or