Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Markup text
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Markup text

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: Markup text
    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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.069 seconds.