I have Textbox
es in a Grid
with numbers in it. If I resize the window, I want to change the FontSize
too.
This code works with the actual height of the TextBox
:
<TextBox FontSize="{Binding Path=ActualHeight, RelativeSource={RelativeSource Self},
Converter={StaticResource HeightToFontSizeConverter}}" Text="12345"/>
But now the FontSize
only resizes in one direction.
Is there a possibility to bind two paths? Or another option?
Thank you.