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.

Syncfusion Panel control with themes

Thread ID:

Created:

Updated:

Platform:

Replies:

119261 May 29,2015 08:25 PM Jun 2,2015 09:13 PM Windows Forms 6
loading
Tags: Office2007Form
tttmack
Asked On May 29, 2015 08:25 PM


Is there a Syncfusion panel control (or something similar) that I can apply various theming options to?

I am using a 3rd party, form another company, that derives from System.Windows.Forms.Form and I would like to apply Syncfusion background theming to that form so that I can make it look like my other forms in my product.

What I would like is for a Syncfusion control like a panel, where I can set the Dock to Fill and then set the Theme of the panel to Office2007, Office2010, or Metro (and when set to Office, I can choose Blue, Black, Silver). 

Does such a control exist or is there another control that I can Dock to my form as a background that I can use the various Syncfusion theming options with?

If there isn't such a control, can you please tell me the color codes(three numbers) for the following so that I can set my background color depending on which theme the user chooses?
Office2007Form Blue, Office2007Form Silver, Office2007Form Black, Office2010Form Blue, Office2010Form Silver, Office2010Form Black.


Senthil Kumaran Rajan [Syncfusion]
Replied On June 1, 2015 07:50 AM

Hi Taylour,

Thank you for using Syncfusion products.

We regret to let you know that, at present we don’t the container control that supports the ColorScheme. However this can be achieved by customizing the BackColor of control named GradientPanel. Please refer the below code to change the back color for the GradientPanel. We have also prepared the sample for your reference and it can be downloaded from the following location.

Code Snippet[C#]:

//To Change the Back color of the GradientPanel

this.gradientPanel1.BackColor = ColorTranslator.FromHtml("#808080");


Sample Location : http://www.syncfusion.com/downloads/support/forum/119261/ze/GradientPanel-764106751

Additionally, we have different kind of form that supports the color scheme.

1)     Office2007Form
2)     Office2010Form
3)     MetroForm

The color scheme for this forms can be changed by using the below code snippet. We have prepared the sample for your reference and it can be downloaded from the below location.

Code Snippet[C#]:

//To change the color scheme for the Office2007Form

this.ColorScheme = Office2007Theme.Black;

//To change the color scheme for the Office2010Form

this.ColorScheme = Office2010Theme.Black;


Sample Location : http://www.syncfusion.com/downloads/support/forum/119261/ze/FormSamples312400130

UG Links : http://help.syncfusion.com/ug/windows%20forms/index.html#!Documents/officecontrols.htm

Could you please check with the above solution and let us know whether the provided solution helps to achieve your requirement? If we have misunderstood your query please provide some additional details about your requirement. It will be helpful for us to analyze and provide you a prompt solution as early as possible.

Please let us know if you need further assistance.

Regards,
Senthil.

tttmack
Replied On June 1, 2015 01:46 PM

Hello Sentil,

thanks for your help, but I am looking for the RGB Values for the various color schemes of the office forms.

So for example, Office2007Form Blue is something like: Color.FromArgb(187, 212, 246);

Note that Office2010Form Blue is a slightly different color.

The sample code you provided ColorTranslator.FromHtml("#add8e6"); does not look at all like the Blue from the Office2007Form.

if possible, I would like to know these RGB values for both Office2007Form and Office2010Form color schemes (as I said before, the RGB values may not be the same for both form types).

Using these values, I can set the back color property of a panel or picturebox depending on the theme I have set in my settings.

Thanks for your help.
Taylour

Senthil Kumaran Rajan [Syncfusion]
Replied On June 2, 2015 12:11 PM

Hi Taylor,

Thank you for your update.


Query 1: Note that Office2010Form Blue is a slightly different color?


We would like to let you know that, we have implemented the Office 2007 and Office2010 based on the Microsoft office2007 and office2010 Outlook respectively. Hence both the control have the office2010 is different from office2007.

 

Query 2 : if possible, I would like to know these RGB values for both Office2007Form and Office2010Form color schemes (as I said before, the RGB values may not be the same for both form types).

Yes. Please refer the below code snippet, that we have initialized for the Office2007Form and Office2010Form. We have also prepared the sample for your reference and it can be downloaded from the following location.

//To Change the Back color of the GradientPanel to Office2007Black

this.gradientPanel1.BackColor = Color.FromArgb(113, 113, 113);

//To Change the Back color of the GradientPanel to Office2007Blue

this.gradientPanel1.BackColor = Color.FromArgb(187, 212, 246);

//To Change the Back color of the GradientPanel to Office2007Silver

this.gradientPanel1.BackColor = Color.FromArgb(202, 207, 217);


//To Change the Back color of the GradientPanel to Office2007Black

this.gradientPanel1.BackColor = Color.FromArgb(137, 137, 137);

//To Change the Back color of the GradientPanel to Office2007Blue

this.gradientPanel1.BackColor = Color.FromArgb(206, 220, 237);

//To Change the Back color of the GradientPanel to Office2007Silver

this.gradientPanel1.BackColor = Color.FromArgb(232, 236, 240);


Sample Location : http://www.syncfusion.com/downloads/support/forum/119261/ze/GradientPanel1131663606

Please let us know if you need further assistance.

Regards,
Senthil

Senthil Kumaran Rajan [Syncfusion]
Replied On June 2, 2015 12:16 PM

Hi Taylor,

Please ignore our previous update.


Query 1: Note that Office2010Form Blue is a slightly different color?


We would like to let you know that, we have implemented the Office 2007 and Office2010 based on the Microsoft office2007 and office2010 Outlook respectively. Hence both the control have the office2010 is different from office2007.

 

Query 2 : if possible, I would like to know these RGB values for both Office2007Form and Office2010Form color schemes (as I said before, the RGB values may not be the same for both form types).

Yes. Please refer the below code snippet, that we have initialized for the Office2007Form and Office2010Form. We have also prepared the sample for your reference and it can be downloaded from the following location.

//To Change the Back color of the GradientPanel to Office2007Black

this.gradientPanel1.BackColor = Color.FromArgb(113, 113, 113);

//To Change the Back color of the GradientPanel to Office2007Blue

this.gradientPanel1.BackColor = Color.FromArgb(187, 212, 246);

//To Change the Back color of the GradientPanel to Office2007Silver

this.gradientPanel1.BackColor = Color.FromArgb(202, 207, 217);


//To Change the Back color of the GradientPanel to Office2010Black

this.gradientPanel1.BackColor = Color.FromArgb(137, 137, 137);

//To Change the Back color of the GradientPanel to Office2010Blue

this.gradientPanel1.BackColor = Color.FromArgb(206, 220, 237);

//To Change the Back color of the GradientPanel to Office2010Silver

this.gradientPanel1.BackColor = Color.FromArgb(232, 236, 240);


Sample Location : http://www.syncfusion.com/downloads/support/forum/119261/ze/GradientPanel-1653884494

Please let us know if you need further assistance.

Regards,
Senthil

tttmack
Replied On June 2, 2015 03:32 PM

Hi Senthil,

thanks for your help.

Best Regards,
Taylour

Senthil Kumaran Rajan [Syncfusion]
Replied On June 2, 2015 09:13 PM

Hi Taylor,

Thank you for your update.

Please let us know if you need further assistance.

Regards,
Senthil

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.

;