Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need to Trim node text according to the node width (Read 1617 times)
kaykay15
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
Need to Trim node text according to the node width
Apr 9th, 2010 at 9:58am
Print Post  
Hello Mind Fusion Team,

How do i implement the text trimming functionality on the diagram nodes,

i.e when the text of the node is greater than the width of the node then it should display ellipses characters and when the node is resized to fit the full text, the ellipses should disappear and should display full text.

Awaiting for reply...

Thanks,
-KayKay
  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need to Trim node text according to the node w
Reply #1 - Apr 9th, 2010 at 12:54pm
Print Post  
Hi,

We have added a TextWrapping property here to let you disable wrapping:
https://mindfusion.eu/_beta/diaglite15_textwrap.zip

In older versions you can disable it only by modifying the ShapeNode template.

However we can't find a way to enable trimming by ellipses in the TextBlock control. It just cuts the text when there's not enough space.

Stoyan
  
Back to top
 
IP Logged
 
kaykay15
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
Re: Need to Trim node text according to the node w
Reply #2 - Apr 12th, 2010 at 11:36am
Print Post  
Hellow Stoyo,

After using the above metioned dlls also i am not able to see much difference, it is behaving as same as earlier. Sad

I am using mindfusion dlls version as mentioned below:
Silverlight - 1.4.0.29592
Graphs.Silverlight - 1.1.0.29591


I need to trim the text according to the node size...

And also i have searched a bit for this problem and found a property like MeasureString for diagram, i am not able to find this property in the diagram control.
Is that property updated in the version which i am using?

Thanks,
-KayKay
« Last Edit: Apr 12th, 2010 at 12:43pm by kaykay15 »  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need to Trim node text according to the node w
Reply #3 - Apr 12th, 2010 at 1:44pm
Print Post  
Hi,

The version of the file from the zip ends with 26491. Update your project to use it, and also set the TextWrapping property to None.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint