<Page
    x:Class="SsrsViewerSamples.Samples.AppBarDemo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SsrsViewerSamples.Samples"
    xmlns:c1SsrsViewer="using:C1.Xaml.SsrsViewer"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Page.TopAppBar>
        <CommandBar BorderBrush="Transparent">
            <c1SsrsViewer:OptionsTool x:Name="optionTool" />
            <CommandBar.SecondaryCommands>
                <c1SsrsViewer:NavigationTool x:Name="navigationTool" />
            </CommandBar.SecondaryCommands>
        </CommandBar>
    </Page.TopAppBar>
    
    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <c1SsrsViewer:C1SsrsViewer x:Name="ssrsViewer"
                                   FullPath = "http://ssrs.componentone.com:8000/ReportServer/AdventureWorks/Product Catalog"
                                   AccentBrush="#FF4215DA"
                                   ShowOptions="False"
                                   ShowNavigationButtons="Never"
                                   IsPrintingEnabled="False" 
                                   IsThumbnailsVisible="{Binding IsChecked, ElementName=btnThumbs, Mode=TwoWay}"  />
    </Grid>
    
    <Page.BottomAppBar>
        <CommandBar BorderBrush="Transparent" Opened="CommandBar_Opened">
            <AppBarButton x:Name="btnCopy" Label="Copy" Icon="Copy" Click="btnCopy_Click" />
            <AppBarSeparator />
            <AppBarToggleButton x:Name="btnThumbs" Icon="ViewAll" Label="Thumbnails" Click="btnThumbs_Click"/>
            <CommandBar.SecondaryCommands>
                <AppBarButton x:Name="btnClose" Label="Close" Icon="Cancel" Click="btnClose_Click" />
                <AppBarSeparator />
                <c1SsrsViewer:SearchTool x:Name="searchBar" />
            </CommandBar.SecondaryCommands>
        </CommandBar>
    </Page.BottomAppBar>
</Page>
