c# - Setting the same font size across multiple viewboxes -
Assume that I have two view boxes, which have two textlines inside them. Both have the same width and height, but the text will not have the same length.
Example of code:
& lt; Viewbox x: name = "vb1" & gt; How do I create them the same font size? & Lt; Text block text = "some text" /> & Lt; / Viewbox & gt; & Lt; Viewbox x: name = "vb2" & gt; & Lt; Text block text = "some big text" /> & Lt; / Viewbox & gt;
What do I want to do here:
Mike Strobel makes sense; I'm not sure if you want to overlap the text or not not So, to get the effect like this, replace & Lt; Column width = "300" /> & Lt; /Grid.ColumnDefinitions> & Lt; Text block text = "some text" /> & Lt; TextBlock Text = "Some Big Text" Grid Column = "1" /> & Lt; / Grid & gt; & Lt; / Viewbox & gt; grid with
StackPanel :
Comments
Post a Comment