WPF C# fitting different Screen Sizes

Jim Jupiter 40 Reputation points
2025-03-10T22:23:29.0366667+00:00

Hi,

I'm coding a nice smart tiny app :) and coding on a desktop PC - yesterday Im starting to

test a release version and create a setup project - already done.

For testing I put the setup file on my old notebook - and ahhhhhhh can't believe it.

My wonderful layout does not scale to the different screen size and resolution :((.

What should I do? Where to start to fit the layout to other screen sizes/resolutions?

I thought Windows was smart

Is there a easy trick or have I to convert all to dynamic Layouts - find not much

handy tutorials for it on the internet. Where is a point to start?

Any help would be great

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,338 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 72,276 Reputation points
    2025-03-10T22:53:55.7033333+00:00

    you should follow the responsive (dynamic) design suggestions:

    https://learn.microsoft.com/en-us/windows/apps/design/layout/responsive-design

    https://learn.microsoft.com/en-us/windows/apps/design/layout/layouts-with-xaml

    note: if you did not start with fluid and responsive design, you may need major refactoring. Responsive design means designing from the start how to display on different screen and font sizes. In general you can never use absolute coordinates. My guess is even on your dev box, if you changed to large fonts it looks terrible.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.