<UserControl x:Class="FasdDesktopUi.Pages.SlimPage.UserControls.SlimPageDataHistoryCollection"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:FasdDesktopUi.Pages.SlimPage.UserControls"
             mc:Ignorable="d"
             Name="DataHistoryCollectionUc"
             d:DesignHeight="450"
             d:DesignWidth="800">

    <ScrollViewer VerticalScrollBarVisibility="Auto">
        <ScrollViewer.Resources>
            <Style TargetType="ScrollViewer">
                <Setter Property="Padding"
                        Value="0 0 0 2.5" />

                <Style.Triggers>
                    <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=ComputedVerticalScrollBarVisibility}"
                                 Value="Visible">
                        <Setter Property="Padding"
                                Value="0 0 5 5" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>

        </ScrollViewer.Resources>

        <StackPanel x:Name="MainStack"
                    VerticalAlignment="Bottom">
            <StackPanel.Resources>
                <Style TargetType="local:SlimPageDataHistory">
                    <EventSetter Event="MouseUp"
                                 Handler="DataHistoryUc_MouseUp" />
                    <EventSetter Event="TouchDown"
                                 Handler="DataHistoryUc_TouchDown" />
                </Style>

            </StackPanel.Resources>
        </StackPanel>
    </ScrollViewer>

</UserControl>
