1
사용자 지정 ButtonStyle과 함께 ExtendedWPFToolkits의 ColorPicker를 사용하고 싶습니다. 항목의 Template 속성을 재정의하는 새로운 모양을 만들 수 있지만 원래 템플릿 클릭 이벤트가 누락되었습니다.원본 이벤트를 유지하는 새 ControlTemplate 정의
나는 그것을 지키고 싶지만 어떻게해야합니까?
<Controls:ColorPicker >
<Controls:ColorPicker.ButtonStyle>
<Style TargetType="{x:Type ToggleButton}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Button Content="ColorPicker"></Button>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Controls:ColorPicker.ButtonStyle>
</Controls:ColorPicker>