Print Page | Close Window

TextBlock + PathCompactPath?

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=16881
Printed Date: 20 June 2025 at 11:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TextBlock + PathCompactPath?
Posted By: znakeeye
Subject: TextBlock + PathCompactPath?
Date Posted: 26 June 2010 at 8:25am
XTP 13.4.
 
<TextBlock>C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v13.4.0\Workspace\ToolkitPro\Release\vc100</TextBlock>
 
If you want to display this textblock in a control with insufficient width, it makes sense to use PathCompactPath to compress it a bit. I know System.Windows.TextTrimming does not define such a trim mode. Can this be accomplished somehow using markup? If not, consider it a feature request :)
 
Edit: Looks like people already found this flaw in WPF:
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/0d0319ed-ea16-40c3-96c6-664b383b69cb - http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/0d0319ed-ea16-40c3-96c6-664b383b69cb


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: znakeeye
Date Posted: 02 July 2010 at 6:18am
No chance for an extension?

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: jpbro
Date Posted: 02 July 2010 at 9:03am
I agree that TextTrimming='PathEllipsis' would be a useful extension.

I tried implementing the workaround as described at your link, but I couldn't get it working reliably with CJ markup (I never found a way to prevent the filename portion from moving too far to the right when the visible client area was really wide).



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: markr
Date Posted: 02 July 2010 at 9:49am
Just would like to chime in with my vote as well. Would like to see this added to the feature roadmap.



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