this code is not working. I want to add button group instead radio button.. there is three buttons. all three buttons are same color(blue). when user click on 1st button it will change that button color as red. But when user click on second button, first button must turn into blue color and clicked button(2nd button) must turn in to red. In my code that's not change. this is my code. please Help me
<UserControl>
<Style TargetType="{x:Type Button}">
<Setter Property="Background" Value="Green"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}" BorderBrush="Black" BorderThickness="1">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsFocused" Value="True">
<Setter Property="Background" Value="Red"/>
</Trigger>
</Style.Triggers>
</Style>
</UserControl>
<Button Command="{Binding LanguageChangeCommand}" CommandParameter="English" Content="English" Width="80" Grid.Column="2" Grid.Row="3" Margin="8,15,162,21" Grid.ColumnSpan="2" />
<Button Command="{Binding LanguageChangeCommand}" CommandParameter="Sinhala" Content="සිංහල" Width="80" Grid.Column="3" Grid.Row="3" Margin="78,15,77,21" />
<Button Command="{Binding LanguageChangeCommand}" CommandParameter="Tamil" Content="தமிழ்" Width="80" Grid.Column="3" Grid.Row="3" Margin="165,15,10,21" Grid.ColumnSpan="2"/>