This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, How can I have the dropdown open in the DropDownColorPicker whenever the user clicks on any part of the combobox not just the dropdown button? Thank you Oscar |
|
|
Hello Oscar To do this, you can simply create a custom drop down color picker style. Start by copying one of the drop down color picker styles that we provide such as from the Generic.xaml or OfficeBlue.Common.xaml files. At the core of the style, you'll see that there is a DropDownEditBox control. To achieve the behavior that you need, you need to create a custom style for this control. The code for the default styles of this control can also be found in those 2 files I mentioned. For your custom style/template, you'll want to make the drop down toggle button to take up the entire width of the control, and sit over the top of everything in the control. To make it look the same as the current style, you can template the button to have a Grid with 2 columns. The first column has a transparent border which will allow you to see through it, but will detect mouse events, and the second column has the standard look of the button. Let me know if you have any questions about this. -Jason Fauchelle |
|