Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Changing the colour of links (Read 1841 times)
James_Thomas
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Jul 28th, 2009
Changing the colour of links
Jul 28th, 2009 at 7:10am
Print Post  
Hi,

I'm having trouble changing the colour of links and link text. I'm doing:

MindFusion.Diagramming.Silverlight.DiagramLink dl = theDiagram.ActiveItem as DiagramLink;
               if (dl != null)
                   dl.Pen.Brush = new SolidColorBrush(MyColor);

But that doesn't change the colour of the link. I'm not sure which property to use for changing the colour of the link text.

Any pointers would be welcome.

Thanks, James.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Changing the colour of links
Reply #1 - Jul 28th, 2009 at 9:20am
Print Post  
Hi,

The DiagramLink.Pen setter refreshes the link, but Pen.Brush does not, so try the following:

Set dl.Pen = new Pen(new SolidColorBrush(MyColor));

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


I love YaBB 1G - SP1!

Posts: 6
Joined: Jul 28th, 2009
Re: Changing the colour of links
Reply #2 - Jul 28th, 2009 at 11:52am
Print Post  
Thanks - that's done the trick.
James.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint