Markup: Possible trimming bug |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 26 June 2010 at 8:37am |
XTP 13.4.
CharacterEllipsis trimming does not work inside auto-sized column! Try the following in MarkupPad and resize the main window:
<Border>
<Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width='Auto'/> </Grid.ColumnDefinitions> <TextBlock TextTrimming='CharacterEllipsis' Grid.Column='1'>C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v13.4.0\Workspace\ToolkitPro\Release\vc100</TextBlock> </Grid> </Border> |
|
PokerMemento - http://www.pokermemento.com/
|
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1354 |
Post Options
Thanks(0)
|
I believe it's because the Auto designation makes the column width fit
the content width, even if that width is > the width of the Grid or
Viewport.
See this example with a border, and notice that the right edge of the border is missing: I think that this is why we need the ability to define sizes as a % of the parent object width , but currently this is not possible. |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1354 |
Post Options
Thanks(0)
|
Ah! It looks like ColumnDefinitions support * for the Width property,
so:
Appears to do the trick |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Thanks a lot!
|
|
PokerMemento - http://www.pokermemento.com/
|
|
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 |