1
我已經修改了的ControlTemplate爲ComboBoxEdit像這樣(在App.xaml中):應用默認控件模板只有一個控制
<ControlTemplate x:Key="CustomComboBoxEditTemplate" TargetType="{x:Type dxe:ButtonEdit}">
...
</ControlTemplate>
<Style TargetType="{x:Type dxe:ComboBoxEdit}">
<Setter Property="Template" Value="{StaticResource CustomComboBoxEditTemplate}"/>
</Style>
對於1控制在我需要的原件。我如何才能將原始模板設置爲只有一個控件?
<dxe:ComboBoxEdit Name="PART_Editor" ItemsSource="{Binding ...}"
Template="What can I write here?">
</dxe:ComboBoxEdit>