WPF altering property on just PART_EditableTextBox of a combBox
问题 I would like to make a change to the PART_EditableTextBox of the default wpf combobox (change the background for example). I tried adding a style like this: <Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}"> <Setter Property="Control.Template"> <Setter.Value> <ControlTemplate TargetType="ComboBox"> <TextBox x:Name="PART_EditableTextBox" Background="AntiqueWhite"/> </ControlTemplate> </Setter.Value> </Setter> </Style> But that causes the rest of the default