Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can nodes display label in Chinese? and carry hyperlink? (Read 3756 times)
John Zhang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Jul 19th, 2012
Can nodes display label in Chinese? and carry hyperlink?
Jul 19th, 2012 at 2:52am
Print Post  
I plan to use Diagramming Components for web application. I have not try this controls and still in phase of experience collection.
anybody can share your experience with me about:
1) Can nodes display label in Chinese?
2) Can nodes carry hyperlink?
Thanks!
John Zhang
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can nodes display label in Chinese? and carry hyperlink?
Reply #1 - Jul 19th, 2012 at 9:18am
Print Post  
Hi,

Quote:
1) Can nodes display label in Chinese?


Silverlight support Unicode encoding and rendering, so you can display text in any language by setting the Text property of nodes:

var node = diagram.Factory.CreateShapeNode(0, 0, 200, 200);
node.Text = "這是在中國的一些示例文本";

Quote:
2) Can nodes carry hyperlink?


Nodes have a Hyperlink property, which you could navigate to using the Silverlight's browser API from the NodeClicked event. If you need to show a clickable hyperlink as part of a node, you can host a HyperlinkButton class instance inside a ControlNode, or as a part of a larger UserControl hosted inside the ControlNode.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
John Zhang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Jul 19th, 2012
Re: Can nodes display label in Chinese? and carry hyperlink?
Reply #2 - Jul 20th, 2012 at 3:22am
Print Post  
Stoyan,
Thank you very much.
John
Stoyo wrote on Jul 19th, 2012 at 9:18am:
Hi,

Quote:
1) Can nodes display label in Chinese?


Silverlight support Unicode encoding and rendering, so you can display text in any language by setting the Text property of nodes:

var node = diagram.Factory.CreateShapeNode(0, 0, 200, 200);
node.Text = "這是在中國的一些示例文本";

Quote:
2) Can nodes carry hyperlink?


Nodes have a Hyperlink property, which you could navigate to using the Silverlight's browser API from the NodeClicked event. If you need to show a clickable hyperlink as part of a node, you can host a HyperlinkButton class instance inside a ControlNode, or as a part of a larger UserControl hosted inside the ControlNode.

I hope that helps,
Stoyan

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