<Page
    x:Class="PdfViewerSamples.Printing"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:PdfViewerSamples"
    xmlns:c1="using:C1.Xaml.PdfViewer"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="500">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Button x:Name="btnPrint" x:Uid="/PdfViewerSamplesLib/Resources/Print" HorizontalAlignment="Left" Click="btnPrint_Click"/>
        <Button x:Name="btnLoad" x:Uid="/PdfViewerSamplesLib/Resources/Load" HorizontalAlignment="Right" VerticalAlignment="Top" Click="btnLoad_Click" />
        <c1:C1PdfViewer x:Name="c1PdfViewer1" ViewMode="Fitted" Grid.Row="1"/>
        <VisualStateManager.VisualStateGroups>

            <!-- Visual states reflect the application's window size -->
            <VisualStateGroup>
                <VisualState x:Name="WideLayout">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="540" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                    </VisualState.Setters>
                </VisualState>

                <VisualState x:Name="NarrowLayout">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="0" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="btnPrint.FontSize" Value="12" />
                        <Setter Target="btnLoad.FontSize" Value="12" />
                        <Setter Target="btnPrint.Width" Value="80" />
                        <Setter Target="btnLoad.Width" Value="80" />
                    </VisualState.Setters>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
    </Grid>
</Page>
