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

Gradient Functionality in ColorEdit Control

Thread ID:





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


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 04:59 PM UTC


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 10:28 AM UTC

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.

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