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:

Enter the image <Code> TextBlock </ code> in both <code> in both </ p> </ div> </ div> </ p> </ div> ViewBox </ code>: </ p> <pre > <Code> & lt; ViewBox & gt; & lt; Grid & gt; & lt; Text Block Text =

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 grid with StackPanel :

& 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;


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -