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. Image for the cookie policy date

ColorPicker automatically changes Brush to gradient

Hi,

I am using ColorPicker like this -

Grid.Column="1"
Name="colorPicker1"
Height="24"
MinWidth="20"
Brush="{Binding Path=PropertyValue, Mode=TwoWay}"
IsColorPaletteVisible="True"
EnableSolidToGradientSwitch="False"
IsAlphaVisible="False"
IsGradientPropertyEnabled="False"
BrushMode="Solid"
IsOpenGradientPropertyEditor="False">


where PropertyValue is of type Brush.

Now everything works fine, selected color is displayed properly in color picker(say I Brushes.Red is the value of 'PropertyValue'); but as soon as I click on ColorPicker combo to selct another color the selected color automatically becomes Gradient. So without changing the selected color or anything the Brush changes to Gradient and so does the Background of control(also bound to PropertyValue).

I am confused that even when I have set the BrushMode to solid and EnableSolidToGradientSwitch is also set to false, howcome ColorPicker makes the the Brush gradient?

Would appreciate an early response.

Thanks

1 Reply

MK Mayavel K Syncfusion Team May 27, 2010 07:25 AM UTC

Hi Abhishek,

Thank you for using Syncfusion products.

Thanks for bringing this issue to our attention. We are able to reproduce the issue that you have mentioned. We have filed a defect report internally and would be updating you with the fix within a week through DirectTrac.

Please let us know if you have any other queries.

Regards,
Mayavel K

Loader.
Live Chat Icon For mobile
Up arrow icon