<!--Code used to define the hover color-->
<SolidColorBrush x:Key="MouseHovercolor">Green</SolidColorBrush>
<!--Code used to change the hover color when using mouse-->
<Grid x:Name="MouseOverBackground" Opacity="0" >
<Border
VerticalAlignment="Stretch" Background="{StaticResource MouseHovercolor}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"/>
</Grid>
<!--Code used to changed the foreground color on MouseHover-->
<ColorAnimation To="{Binding Source={StaticResource ExpandedStroke},Path=Color}"
Storyboard.TargetProperty="(ContentControl.Foreground).(SolidColorBrush.Color)"
Storyboard.TargetName="header" />
<!--Code shows how the edited template applied using ItemContainerStyle-->
<syncfusion:SfAccordion x:Name="accordion"
VerticalAlignment="Center" Width="450" ItemContainerStyle="{StaticResource Accordionitems}" >
<syncfusion:SfAccordionItem Header="Winrt" AccordionButtonStyle="{StaticResource accordionButtonStyle}"/>
<syncfusion:SfAccordionItem Header="Windows Phone" AccordionButtonStyle="{StaticResource accordionButtonStyle}"/>
<syncfusion:SfAccordionItem Header="WPF" AccordionButtonStyle="{StaticResource accordionButtonStyle}"/>
<syncfusion:SfAccordionItem Header="Universal" AccordionButtonStyle="{StaticResource accordionButtonStyle}"/>
</syncfusion:SfAccordion> |