Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: Property Grid: Displaying enums in combobox

$
0
0
Hi Glenn,

1) I tried to use the style defined explicitly as you did and it worked. Here's my code, just setting the IsEditable property in the style :
<Style x:Key="PropertyGridComboStyle"
             TargetType="ComboBox"
             BasedOn="{StaticResource {x:Type ComboBox}}">
         <Setter Property="IsEditable"
                 Value="True" />
</Style>

.....
<xctk:EditorTemplateDefinition.EditingTemplate>
                  <DataTemplate>
                     <ComboBox ItemsSource="{StaticResource comboSource1}"
                               Style="{DynamicResource PropertyGridComboStyle}">
                     </ComboBox>
                  </DataTemplate>
</xctk:EditorTemplateDefinition.EditingTemplate>
So I believe there Is something else with the comboBoxItem or internally.

2) and 3). I believe this is a working option.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>