Gradient Functionality in ColorEdit Control

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

2 Replies

AD Administrator Syncfusion Team 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


DC David C Syncfusion Team 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

Loader.
Up arrow icon