Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node Effects on Custom Nodes (Read 4572 times)
Waterfiets
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Sep 27th, 2013
Node Effects on Custom Nodes
Oct 29th, 2013 at 10:56am
Print Post  
Hi there,

I saw this example http://www.mindfusion.eu/onlinehelp/wpfdiagram/index.htm on your website and wanted to try it out. But i think it's not working because we're using custom nodes. Could you give any tips?

Thanks in advance.

Greets,

Sander
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node Effects on Custom Nodes
Reply #1 - Oct 29th, 2013 at 11:42am
Print Post  
Hi,

The built-in effects cannot be applied to custom nodes, because the control cannot know to which parts of your custom-drawn WPF visual tree they should be applied. These effects mostly add some radial gradients to the nodes' background, so you should be able to draw something similar in the Draw override using a RadialGradientBrush at the locations you want 'reflections' to appear.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Waterfiets
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Sep 27th, 2013
Re: Node Effects on Custom Nodes
Reply #2 - Oct 29th, 2013 at 12:14pm
Print Post  
Ok thanks! I was using that at the moment, but i didn't know it could look that fancy using the RadialGradientBrush.

Greets,

Sander
  
Back to top
 
IP Logged
 
Waterfiets
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Sep 27th, 2013
Re: Node Effects on Custom Nodes
Reply #3 - Oct 29th, 2013 at 12:48pm
Print Post  
Btw, with which property could i give some depth to my custom nodes and maybe some shades?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node Effects on Custom Nodes
Reply #4 - Oct 29th, 2013 at 2:41pm
Print Post  
You could set the node's UIElement.Effect property to a DropShadowEffect instance. That's not one of ours but provided by WPF.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Waterfiets
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Sep 27th, 2013
Re: Node Effects on Custom Nodes
Reply #5 - Oct 29th, 2013 at 3:38pm
Print Post  
Ah, that looks nice. Are there any other nice effects that could make the nodes look a bit more fancy?

Thanks in advance.

Greets,

Sander Leune
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node Effects on Custom Nodes
Reply #6 - Oct 29th, 2013 at 5:01pm
Print Post  
Check the other effect classes in the Inheritance Hierarchy section here, I'm not sure what they do:
http://msdn.microsoft.com/en-us/library/system.windows.media.effects.effect.aspx

You could also change the UIElement.Opacity property to make your nodes translucent.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Waterfiets
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Sep 27th, 2013
Re: Node Effects on Custom Nodes
Reply #7 - Oct 30th, 2013 at 8:24am
Print Post  
Thanks, this has some nice features, but i'm surprised that its quite concise. In other words, the visual options that wpf offers isn't that extensive.

Greets,

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