We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

node has background color but also transparent

Thread ID:

Created:

Updated:

Platform:

Replies:

99396 May 18,2011 03:22 PM May 24,2011 02:16 PM WPF 4
loading
Tags: Diagram
Mary Fontana
Asked On May 18, 2011 03:22 PM


I am setting the background color of a node.

node.OffsetX = offsetx;
node.OffsetY = offsety;
node.Width = width;
node.Height = MinLaneHeight;
node.Background = this.Resources[background] as SolidColorBrush;

How would I also make it transparent to show the horizontal/vertical lines?




Mary Fontana
Replied On May 18, 2011 11:18 PM

I meant to say I want to display the horizontal/vertical grid lines for the nodes. So the node has a background color but also shows the grid lines.


David Chiew
Replied On May 20, 2011 01:22 AM

I'm also interested in how to do this, for the Node() object there doesn't appear to be a FillColour attribute, and setting Background-Color to null seems to make it black (i guess null => #000)

I'm just evaluating the sample FlatDiagram, and trying to get that Decision diamond to be transparent (so the arrows are not hidden)

Any ideas?

thanks!
Dave


Ramya Thirugnanam [Syncfusion]
Replied On May 20, 2011 07:10 AM

Hi Mary,

Node’s shape can be customized by using its CustomPathStyle property. The background of the Node’s Shape can be made transparent by applying the Transparent Brush to Fill Property of the Node’s CustomPathStyle. We have created the sample based on your requirement. Please refer to the sample from the attachment.

Please let us know if you have any further queries and we will be happy to help you out.

Regards,
Ramya





NodeBackground_1a5a1bd7.zip

Mary Fontana
Replied On May 24, 2011 02:16 PM

Thanks, that helped me figure out what I was doing wrong.

I did have an opacity setting on the node background color.

I dont remember when I added this line:

diagramView.Page.Background = new SolidColorBrush(Colors.White);

but it caused the horizontal/vertical grid lines to go away.
I understand why now.



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;