<Page
    x:Class="RotateTheText.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:RotateTheText"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Border BorderBrush="{StaticResource ApplicationForegroundThemeBrush}"
                BorderThickness="1"
                HorizontalAlignment="Center"
                VerticalAlignment="Center">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                
                <Slider Name="slider"
                        Grid.Row="0"
                        Minimum="0"
                        Maximum="360" />
                
                <TextBlock Name="txtblk"
                           Text="Obróć tekst za pomocą suwaka"
                           Grid.Row="1"
                           FontSize="48">
                    <TextBlock.RenderTransform>
                        <RotateTransform Angle="{Binding ElementName=slider, Path=Value}" />
                    </TextBlock.RenderTransform>
                </TextBlock>
            </Grid>
        </Border>
    </Grid>
</Page>

