For years we've just accepted that running at a different DPI than 100% causes our WinForms app with Telerik to be less than useful. All the text of words ends of being shrunk with dots. I.e. "Welcome" would become "Welc…" in the UI on labels, buttons, etc.
Is there a way to overcome this? With users and their 4K monitors at 350% DPI our application is no longer useable.
5 Answers, 1 is accepted
The case where there are dots after each string is observed when the application becomes DPI aware at run-time. This happens because all WPF applications are DPI-aware by default and as soon as a type from WPF assmbly is used the entire application becomes DPI-aware (our export functionality uses such assemblies). There are two options for solving this:
- Explicitly make the application DPI-unaware (this works in Windows 10 only). This is described in the following article: HDPI Tips and Tricks.
- Explicitly make the application DPI-aware. This way the application will be scaled while the layout is initialized and you will not see the dots. We have added a HDPI support in R2 2017 and if you are using this or newer version your controls will be scaled automatically. The following article describes this along with how to make the application DPI-aware - DPI Support.
I hope this will be useful. Let me know if you have additional questions.
I haven't tried the 1st option yet; however, the 2nd option isn't working for us automatically. We're currently using "2018.1.220.40" via the nuget packages you host on your site and still have this problem.
I'll try option #1 and let you know how that works for us.
Ok, if possible could you share why exactly this is not working? Is the layout disturbed or something else?
I am looking forward to your reply.
Using the app.manifest worked. I didn't completely overwrite the one generated with the XML in your link. After doing that it works fine.
I am glad that this works now. Do not hesitate to contact us if you have other questions.