<?xml version="1.0" encoding="utf-8"?>
<Page
    x:Class="Sonex.Client.Pages.BlankPage3"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Sonex.Client.Pages"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:canvas="using:Microsoft.Graphics.Canvas.UI.Xaml"
    mc:Ignorable="d">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <!-- Twój renderer (np. Win2D CanvasControl) -->
        <Border Grid.Row="1" Grid.Column="1" Background="{ThemeResource ScrollBarBackground}" />

        <canvas:CanvasControl x:Name="Canvas" Draw="Canvas_Draw"
                        Grid.Row="0" Grid.Column="0"/>

            <ScrollBar Grid.Row="0" Grid.Column="1" x:Name="V" Orientation="Vertical" IndicatorMode="MouseIndicator" CanBeScrollAnchor="True" Width="20" Visibility="Visible" Opacity="1" Padding="0" Background="Transparent"
               ValueChanged="Scroll_ValueChanged"/>

        <ScrollBar x:Name="H" Grid.Row="1" Grid.Column="0" Orientation="Horizontal" IndicatorMode="MouseIndicator" CanBeScrollAnchor="True" Height="20" Visibility="Visible" Opacity="1" Background="Transparent"
               ValueChanged="Scroll_ValueChanged"/>
    </Grid>
</Page>
