<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:timeline="using:Pixeval.Controls.Timeline">
    <Style TargetType="timeline:TimelineUnit">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="timeline:TimelineUnit">
                    <Grid
                        x:Name="TimelineSectionBackground"
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Center"
                        Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition x:Name="LeftColumn" Width="50" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition x:Name="RightColumn" Width="50" />
                        </Grid.ColumnDefinitions>
                        <StackPanel Grid.Column="0" VerticalAlignment="Stretch">
                            <Grid
                                x:Name="LeftIconContainer"
                                Width="45"
                                Height="45"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Background="#F4F6F8"
                                CornerRadius="25">
                                <IconSourceElement
                                    Width="45"
                                    Height="45"
                                    HorizontalAlignment="Center"
                                    IconSource="{TemplateBinding TitleIcon}" />
                            </Grid>
                            <Grid
                                x:Name="LeftIndicatorAxis"
                                Width="4"
                                Background="#E3E3E3" />
                        </StackPanel>

                        <ContentControl
                            x:Name="ContentPresenter"
                            Grid.Column="1"
                            Width="{TemplateBinding Width}"
                            Height="{TemplateBinding Height}"
                            Padding="15,0"
                            HorizontalAlignment="Left"
                            VerticalAlignment="Top"
                            HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                            Content="{TemplateBinding Content}"
                            ContentTemplate="{TemplateBinding ContentTemplate}"
                            ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
                            DataContext="{TemplateBinding DataContext}" />

                        <StackPanel Grid.Column="2" VerticalAlignment="Stretch">
                            <Grid
                                x:Name="RightIconContainer"
                                Width="45"
                                Height="45"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Background="#F4F6F8"
                                CornerRadius="25">
                                <IconSourceElement
                                    Width="45"
                                    Height="45"
                                    HorizontalAlignment="Center"
                                    IconSource="{TemplateBinding TitleIcon}" />
                            </Grid>
                            <Grid
                                x:Name="RightIndicatorAxis"
                                Width="4"
                                Background="#E3E3E3" />
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
