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
|
I've had to write a few custom drop-downs using the DropDownEditBox & either a ListView or ListBox in the DropDownTemplate. I've tried a few methods but never have much luck mimicking the standard behavior of your dropdown editors (e.g. enum & boolean) where the dropdown behaves more like a combobox. Primarily closing the list when the user selects an item. What are you doing to get this behavior? |
|
|
The enum and boolean editors use a standard ComboBox rather than the DropDownEditBox. The DropDownEditBox doesn't know anything about selection within the dropped-down portion so if you need it to "close on click" then you'll need to implement that behaviour in the contained elements. (The reason for not automatically closing is that the original motivating use cases for the DropDownEditBox were the DropDownDateTimePicker and ColorPicker, both of which have elements where the user needs to be able to click without closing (e.g. the previous/next month buttons).) |
|
|
How do I apply the style to a combobox I'm using in my property grid? |
|
|
Sorry, I don't quite understand the question. Which style do you want to apply? Do you mean you have a custom editor which uses a combo box, and you want that combo box to pick up the style that was applied to the property grid as a whole? |
|
|
I have a combobox in a data template used by an editor, but it displays as a normal combobox (big blue button); I would like it to match the other dropdowns (e.g. enum editor) in the property grid. |
|
|
Hello Mike If you are using one of the 5 themes that we provide, then you can apply our combo box style to the ComboBox in your data template by using Style="{StaticResource ComboBoxStyle}". This will pick up the style from whatever theme you have included in the ResourceDictionary.MergedDictionaries. If you are not using one of the 5 themes and just sticking to the generic styles, then you can make the ComboBox look like all the others by setting these ComboBox properties: Hope this helps |
|