Print Page | Close Window

Markup text

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16648
Printed Date: 21 June 2025 at 11:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Markup text
Posted By: jimmy
Subject: Markup text
Date 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




Replies:
Posted By: Oleg
Date Posted: 30 April 2010 at 6:55am
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net