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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Gradient Functionality in ColorEdit Control

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi

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

Paul



color-picker bug_d2269810.zip

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

Hi

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


Thanks

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.

Sync:SkinStorage.VisualStyle="Blend"
IsGradientPropertyEnabled="False"
EnableGradientToSolidSwitch="False"
BrushMode="Solid" />

Please let me know if you have any queries.

Regards,
David C

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

;