After
Here's a part of my XAML view. The text block text can be quite long though I want to make the line in column 0 (LineGeometry) to fit the same height in TextBlock form
. & Lt; Grid & gt; & Lt; Grid.ColumnDefinitions & gt; & Lt; Column width = "40" & gt; & Lt; / ColumnDefinition & gt; & Lt; ColumnDefinition / & gt; & Lt; /Grid.ColumnDefinitions> & Lt; Path Grid.Column = "0" stroke = "black" strokeThickness = "3" = "black" & gt; & Lt; Path.Data & gt; & Lt; GeometryGroup & gt; & Lt; LineGeometry Start Page = "7,0" Endpoint = "7,70" /> & Lt; EllipseGeometry Center = "7,20" RadiusX = "5" RadiusY = "5" /> & Lt; / GeometryGroup & gt; & Lt; /Path.Data> & Lt; / Path & gt; & Lt; TextBlock Grid.Column = "1" text = "ldkfjlgdlgjljd & amp; # x0a; FSM & amp; # x0a; jklgf & # x0a; DMJ & # x0a; DFM & amp; # x0a; ljdgms & amp; # X0a; kjlk & amp; #x0a; jfdlkjsg "& gt; & Lt; / TextBlock & gt; & Lt; / Grid & gt;
Thanks for your help
get some extent Until your requirement
& lt; Grid & gt; & Lt; Canvas & gt; & Lt; Border Borderbrush = "#FFFF 200" BorderTextNet = "2" & gt; & Lt; StackPanel Orientation = "Horizontal" & gt; & Lt; Grid margin = "5,0" & gt; & Lt; Border width = "2" background = "black" /> & Lt; Ellipse Fill = "Black" Width = "12" Height = "12" /> & Lt; / Grid & gt; & Lt; TextBlock Text = "ldkfjlgdlgjljd & amp; # x0a; FSM & amp; # x0a; jklgf & amp; # x0a; DMJ & # x0a; DFM & # x0a; ljdgms & amp; # x0a; kjlk & amp; # X0a; jfdlkjsg & amp; # X0a; jfdlkjsg "& gt; & Lt; / TextBlock & gt; & Lt; / StackPanel & gt; & Lt; / Border & gt; & Lt; / Canvas & gt; & Lt; / Grid & gt;
No comments:
Post a Comment