<UserControl x:Class="ControlExplorer.Controls.Chart.Interaction.PopupContent"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" RequestedTheme="Light"
    Width="180" Height="125">
    <Border x:Name="border" BorderThickness="1" BorderBrush="#E59AA5A4" Background="#B2FFFFFF" RenderTransformOrigin="0.5, 0.5">
        <Border.Triggers>
            <EventTrigger RoutedEvent="Border.Loaded">
                <BeginStoryboard>
                    <Storyboard>
                        <DoubleAnimation Storyboard.TargetProperty="(RenderTransform).ScaleTransform.ScaleY" Storyboard.TargetName="border" Duration="00:00:0.2" From="0" To="1" />
                        <DoubleAnimation Storyboard.TargetProperty="(RenderTransform).ScaleTransform.ScaleX" Storyboard.TargetName="border" Duration="00:00:0.2" From="0" To="1" />
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Border.Triggers>
        <Border.RenderTransform>
            <ScaleTransform CenterX="0.5" CenterY="0.5" />
        </Border.RenderTransform>
        <Grid x:Name="LayoutRoot" Margin="5">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <TextBlock FontSize="14">
                <Run Text="Series:" />
                <Run Text="{Binding Series}" />
            </TextBlock>
            <TextBlock Grid.Row="1" FontSize="14">
                <Run Text="Value:" />
                <Run Text="{Binding Value}" />
            </TextBlock>
            <Button Content="Close" Grid.Row="2" FontSize="14" HorizontalAlignment="Center" Click="Button_Click" />
        </Grid>
    </Border>
</UserControl>
