<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="Factories.StoreDecorator" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml">
    <UserControl.Resources>
        <Storyboard x:Name="showLargeChart" Storyboard.TargetName="containerScale">
            
            <DoubleAnimation Storyboard.TargetProperty="ScaleX" To="10" Duration="0:0:0.1" />
            <DoubleAnimation Storyboard.TargetProperty="ScaleY" To="10" Duration="0:0:0.1" />
        </Storyboard>
    </UserControl.Resources>
    <Grid>
        <Canvas Width="25" Height="20" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,-5,-5,0" RenderTransformOrigin="0,1">
            <Canvas.RenderTransform>
                <ScaleTransform x:Name="containerScale" />
            </Canvas.RenderTransform>

            <Grid Background="#AA000000" Width="250" Height="200" Name="chartGrid" Cursor="Hand">
                <Grid.RenderTransform>
                    <ScaleTransform x:Name="chartScale" ScaleX="0.1" ScaleY="0.1" />
                </Grid.RenderTransform>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                
                <c1:C1Chart x:Name="chart" FontSize="11" ChartType="Column" Foreground="White" Palette="Standard" Cursor="Hand">
                    <c1:C1Chart.View>
                        <c1:ChartView>
                            <c1:ChartView.AxisX>
                                <c1:Axis Visible="False" />
                            </c1:ChartView.AxisX>
                            <c1:ChartView.AxisY>
                                <c1:Axis Min="0" Max="100">
                                    <c1:Axis.Title>
                                      <TextBlock Text="Sales" />
                                    </c1:Axis.Title>
                                </c1:Axis>
                            </c1:ChartView.AxisY>
                        </c1:ChartView>
                    </c1:C1Chart.View>
                </c1:C1Chart>
                
                <c1:C1ChartLegend x:Name="legend" Foreground="White" Grid.Column="1" Visibility="Collapsed" />
            </Grid>
        </Canvas>        
        
    </Grid>
</UserControl>