Stretch a TextBlock |
Post Reply |
Author | ||
Albert1
Groupie Joined: 01 February 2007 Location: Italy Status: Offline Points: 66 |
Post Options
Thanks(0)
Posted: 13 April 2015 at 6:45am |
|
Any idea on how to render a TextBlock to fill available space.
Viewbox doesnt work:
neither ScaleTransform:
Thank you |
||
Product: Xtreme SuitePro (ActiveX) version 13.4.1 / 16.3.0
Platform: Windows Vista (32bit) - SP 2 Language: Visual Basic 6.0 (SP6) |
||
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
|
Try HorizontalAlignment='Stretch' - it worked for me.
|
||
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
||
Albert1
Groupie Joined: 01 February 2007 Location: Italy Status: Offline Points: 66 |
Post Options
Thanks(0)
|
|
I guess you mean to extend a Shape or a LayoutContainer. I need to auto size a TextBlock to fill the container.
Try to create a file .xaml with these lines:
and execute with Internet Explorer. That's what I need. |
||
Product: Xtreme SuitePro (ActiveX) version 13.4.1 / 16.3.0
Platform: Windows Vista (32bit) - SP 2 Language: Visual Basic 6.0 (SP6) |
||
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
|
Not sure what you mean by execute with Internet Explorer - are you not using Codejock's MarkupLabel or other Codejock markup enabled control?
In Codejock's XAML implementation, if I drop the unsupported "ViewBox" tag, then the TextBlock fills the width and height of the Grid.
|
||
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: 1355 |
Post Options
Thanks(0)
|
|
Any Luck?
|
||
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
||
Albert1
Groupie Joined: 01 February 2007 Location: Italy Status: Offline Points: 66 |
Post Options
Thanks(0)
|
|
I'm giving up.
btw: I am using CJ MarkupControl. To write the XAML code, instead of use MarkupPad (no offence for CJ) I prefere to create a file .xaml, write the code with Notepad++ and render the .xaml code in Internet Explorer. I dont want to stretch the container. I need to stretch the Fontsize to adapt to the container. Without Viewbox:
and what I need (using Viewbox or something else ...):
The scope was to automatically resize the content. With MarkupLabel you can autoresize all objects excluding the text (or I am not able to so I asked here). |
||
Product: Xtreme SuitePro (ActiveX) version 13.4.1 / 16.3.0
Platform: Windows Vista (32bit) - SP 2 Language: Visual Basic 6.0 (SP6) |
||
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 |