In my WPF application, I have ComboBoxes in several places and currently use a large ResourceDictionary as a theme file. While I don't want to replace that theme with an Actipro theme, I do want to use the Actipro ComboBox style for my controls.
I already have a ComboBox style in my theme file so I intended to do the following:However, I got an error indicating that component resource keys cannot be used in BasedOn. I tried other variations but none worked.
Is there a proper way to build a ComboBox style that is based on a ComboBox style from Actipro themes?
Thanks,
-Craig
I already have a ComboBox style in my theme file so I intended to do the following:
<Style
TargetType="{x:Type ComboBox}"
BasedOn="{StaticResource editorsThemes:EditorsCommonDictionary.NativeComboBoxStyleKey}"
>
<Setter Property="SnapsToDevicePixels" Value="true" />
<Setter Property="Template">
...
</Style>
Is there a proper way to build a ComboBox style that is based on a ComboBox style from Actipro themes?
Thanks,
-Craig