Tsukasa
Tsukasa

Reputation: 6552

WPF adjust font size to window ratio

Is there a good wait to adjust font size according to window size? I have a loading image that resizes / stretches to the window size. In the center of it is a label with the status of the current process.

What would be the best way to increase or decrease the font size according to the window size to make sure the label content never overlaps the image?

Upvotes: 2

Views: 2831

Answers (1)

Artur A
Artur A

Reputation: 9139

There is a ViewBox that can be applied to the hole window.

Upvotes: 4

Related Questions