안녕하세요. WPF를 갓 시작한 사람입니다.
다름이 아니라 다수의 버튼이 있을때
클릭된 오직 하나의 버튼만 색깔 변경을 하고 다른 버튼을 눌렀을때 이전 버튼의 색은 원래대로 돌아오게 하고 싶습니다.
<Style.Triggers>
<Trigger Property="IsPressed" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)" To="OrangeRed"/>
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
</Trigger>
</Style.Triggers>
이런식으로 하니까 다수의 버튼이 모두 색이 변하고 색이 원래색으로 돌아오질 않아서요. 어떻게 구성할 수 있을까요?