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.

Gradient Functionality in ColorEdit Control

Thread ID:





94430 May 12,2010 12:36 PM May 13,2010 06:28 AM WPF 2
Tags: Tools
Administrator [Syncfusion]
Asked On May 12, 2010 12:36 PM


We're lookign at the above control - when creating via XAML we use the following code:

IsGradientPropertyEnabled="False" Height="130" VerticalAlignment="Top"

Yet the buttons that allow a switch between SolidColor and Gradient are still visible and enabled (red box in attachment). Also the gradient bar under the color area also remains visible and active (yellow box in attachment).

Is there a way to hide all gradient-based controls (red and yellow boxed controls) so that the control appears to only allow solid color selection?

Many thanks


color-picker bug_d2269810.zip

Administrator [Syncfusion]
Replied On May 12, 2010 12:59 PM


Having just noticed the EnableGradientToSolidSwitch property, this deals with the red boxed issue, but the yellow boxed issue remains.


David C [Syncfusion]
Replied On May 13, 2010 06:28 AM

Hi Paul,

Thanks for your interest in Syncfusion Prouducts.

By default, EnableGradientToSolidSwitch property is used to switch between Solid and Gradient Color selection. However, BrushMode Property is used to select Solid or Gradient colors to apply. So it enables or disables the gradient bar.

Please refer the code snippet mentioned below.

BrushMode="Solid" />

Please let me know if you have any queries.

David C


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.