![]() |
Markup text |
Post Reply ![]() |
Author | |
jimmy ![]() Senior Member ![]() Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
![]() ![]() ![]() ![]() ![]() Posted: 30 April 2010 at 4:21am |
Hello,
i add this text to my MarkupListBox. <StackPanel Orientation='Horizontal' VerticalAlignment='Center' > <Border Margin='1' BorderBrush='Black' Background='Aqua' BorderThickness='1' > <TextBlock Padding='2' FontWeight='Bold' VerticalAlignment='Center' TextAlignment='Center' Width='20' Foreground='Black' Text='I'/> </Border> <TextBlock TextWrapping='Wrap' Padding='2' VerticalAlignment='Center' Text=' Hallo3- eine lange lange Zeile die Lange ist und noch viel länger sein sollte ' /> </StackPanel> But text are not wrapping. Why ? Thanks Jimmy |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Yes, its feature of StackPanel with Orientation='Horizontal' . if you will have 2-3 items more, how stack panel should determine what size give for each item. You need Grid instead or some MaxWidth = '130' for TextBlock .
Microsoft XAML works same....
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |