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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Color Behind SFDiagram Remains White on Background Color Change

Thread ID:





127501 Nov 19,2016 09:27 PM UTC Nov 21,2016 04:35 AM UTC WPF 1
Tags: SfDiagram
John Rewolinski
Asked On November 19, 2016 09:27 PM UTC


I'm working with SFDiagram.  Whenever I change the background color of SFDiagram, the color remains white behind the nodes.  I am using transparent PNG's for the nodes.

How do we make the background transparent for the diagram?  Please see the picture for clarity:

SFDiagram Background

Keerthivasan Ramamoorthy [Syncfusion]
Replied On November 21, 2016 04:35 AM UTC

Hi John, 
We have a support to achieve your requirement by using PageBackground property of the PageSettings, it is used to set Background color of the SfDiagram. The Background color applies based on the PageWidth and PageHeight of the Diagram or elements(Nodes/Connectors) occupies area in the Diagram. We have provided a Code example and Online Document to represent this. Please refer the code example and Online Document link as below.  
Code Example:  
diagram.PageSettings.PageBackground = new SolidColorBrush(Colors.Transparent);  
Here,diagram is instance of SfDiagram.  
Keerthivasan R. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon