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

How to change background color for SymbolPalette in WindowForm

Thread ID:

Created:

Updated:

Platform:

Replies:

120655 Oct 1,2015 02:31 AM UTC Oct 3,2015 01:26 AM UTC WinForms 3
loading
Tags: Diagram
rainkuan9
Asked On October 1, 2015 02:31 AM UTC

How to change background color for SymbolPalette in WindowForm?

I Need to add SymbolPalette On PaletteGroupBar In Code
I Try to Change PaletteGroupBar.GroupBarItems.BackColor and PaletteGroupBar.GroupBarItems.GroupBar.VisualStyle But not Work
Can You Provide Sample Code?

Naganathan Ganesh Babu [Syncfusion]
Replied On October 1, 2015 08:53 AM UTC

Hi rainkuan9,
 
We have created a sample to achieve your requirement. Please refer to the below code example and sample.
 
Code example:
 
[C#]

//setting the visual type
paletteGroupBar1.VisualStyle = Syncfusion.Windows.Forms.VisualStyle.OfficeXP;

//Creating SymbolPalette

Syncfusion.Windows.Forms.Diagram.Rectangle rect = new Syncfusion.Windows.Forms.Diagram.Rectangle(100, 100, 100, 50);

SymbolPalette sym = new SymbolPalette();

sym.Name = "Symbol";

sym.AppendChild(rect);
paletteGroupBar1.AddPalette(sym);

//background color for GroupBarItem
paletteGroupBar1.GroupBarItems[0].Client.BackColor = Color.Wheat;
 
Sample:
 
Sample
 
Regards,
 
Naganathan K G


rainkuan9
Replied On October 2, 2015 01:34 AM UTC

Thank you Naganathan,

it's really helpful 

Shyam G [Syncfusion]
Replied On October 3, 2015 01:26 AM UTC

Hi rainkuan9,

Please let us know if you need further assistance on this.

Regards,
Shyam G

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.

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

;