My question below is answered but I just realised that now the FontSize
only resizes in one direction.
Is there a possibility to bind two paths? Or another option?
Previous question
I have a Grid
[20,20] with TextBox
es in it. In these TextBoxe
s I put numbers. When the application starts up it's fullscreen. If I resize the window the Grid
with the TexBox
es also resizes. But the Font
stays the same. So I want to change the FontSize
when the Window resizes. I tried:
FontSize="{Binding ElementName=aTextBox, Path=Height}"
between the TextBox
tags. But that doesn't work. A binding with the Grid
or Window
with property Height
or Width
didn't work either. With binding to a slider the FontSize
changes according to the the value of the slider. Does anybody have a nice solution?