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

ColorPicker automatically changes Brush to gradient

Thread ID:

Created:

Updated:

Platform:

Replies:

94670 May 26,2010 01:26 PM UTC May 27,2010 07:25 AM UTC WPF 1
loading
Tags: Tools
Abhishek Joshi
Asked On May 26, 2010 01:26 PM UTC

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

Mayavel K [Syncfusion]
Replied On 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

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

;