<UserControl
    x:Class="Pixeval.Controls.StickyHeaderScrollView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="using:CommunityToolkit.WinUI.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="using:Pixeval.Controls"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <ScrollView
        x:Name="View"
        SizeChanged="FrameworkElement_OnSizeChanged"
        VerticalScrollBarVisibility="Hidden"
        ViewChanged="ScrollView_OnViewChanged">
        <controls:DockPanel x:Name="ScrollDockPanel">
            <ContentPresenter
                controls:DockPanel.Dock="Top"
                Background="{x:Bind HeaderBackGround, Mode=OneWay}"
                Content="{x:Bind Header, Mode=OneWay}"
                SizeChanged="FrameworkElement_OnSizeChanged" />
            <ContentPresenter Content="{x:Bind StickyContent, Mode=OneWay}" />
        </controls:DockPanel>
    </ScrollView>
</UserControl>
