Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic About Theme and Style in winform 6.03 (Read 4648 times)
irix
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Aug 1st, 2013
About Theme and Style in winform 6.03
Aug 1st, 2013 at 1:21pm
Print Post  
I update from 5.7 to 6.03,and find linkpen property is obsoleted. Although the help document said that linkpen property could be repalced by theme and style ,but I assured wonder how to control the dashstyle when creating diagramlink?
I also find  the theme editor can not set the diagramlink dashstyle
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: About Theme and Style in winform 6.03
Reply #1 - Aug 1st, 2013 at 1:56pm
Print Post  
We haven't yet implemented support for dashed strokes in styles. For the time being you will have to set the Pen property of each new link, e.g. from InitializeLink event for links drawn by the user, or immediately after calling CreateDiagramLink for ones created from code:

e.Link.Pen = new Pen(Color.Black, 0) { DashStyle = DashStyle.Dash };
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: About Theme and Style in winform 6.03
Reply #2 - Aug 2nd, 2013 at 4:33pm
Print Post  
This version adds StrokeDashStyle property to the Style class, and HeadStrokeDashStyle to DiagramLinkStyle:
https://mindfusion.eu/_beta/fcnet_styledash.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint