<!-- Copyright (c) Microsoft Corporation and Contributors. -->
<!-- Licensed under the MIT License. -->

<UserControl
    x:Class="was.touchcopy.features.messaging.ux.MessagingAppBarControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:was.touchcopy.features.messaging.ux"
    xmlns:featurebase="using:was.touchcopy.features"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <CommandBar Style="{ThemeResource PageHeaderCommandBarStyle}" Margin="10,0,0,0">
        <featurebase:CopyProgressAppBarUserController x:Name="copyProgressUserControl" Visibility="Collapsed" OnCancelTapped="_copyProgressUserControl_OnCancelTapped" MaxWidth="350" DynamicOverflowOrder="8" />
        <AppBarButton x:Name="appBarButtonSavePDF" x:Uid="AppBarButtonSavePDF" Label="XX Save as PDF" Click="_appBarButtonSavePDF_Click" FontWeight="SemiBold" DynamicOverflowOrder="7">
            <AppBarButton.Content>
                <FontIcon Glyph="&#xEA90;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Content>
        </AppBarButton>
        <AppBarButton x:Name="appBarButtonSaveWeb" x:Uid="AppBarButtonSaveWeb" Label="XX Save as HTML" Click="_appBarButtonSaveWeb_Click" FontWeight="SemiBold" DynamicOverflowOrder="6">
            <AppBarButton.Content>
                <FontIcon Glyph="&#xE78C;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Content>
        </AppBarButton>
        <AppBarButton x:Name="appBarButtonSavePlainText" x:Uid="AppBarButtonSavePlainText" Label="XX Save as Text" Click="_appBarButtonSavePlainText_Click" FontWeight="SemiBold" DynamicOverflowOrder="2">
            <AppBarButton.Content>
                <FontIcon Glyph="&#xF000;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Content>
        </AppBarButton>
        <AppBarButton x:Name="appBarButtonSaveCSV" x:Uid="AppBarButtonSaveCSV" Label="XX Save as CSV" Click="_appBarButtonSaveCSV_Click" FontWeight="SemiBold" DynamicOverflowOrder="1">
            <AppBarButton.Icon>
                <FontIcon Glyph="&#xE9F9;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Icon>
        </AppBarButton>
        <AppBarButton x:Name="appBarButtonSaveAttachments" x:Uid="AppBarButtonSaveAttachments" Label="XX Save to PC" Click="_appBarButtonSaveAttachments_Click" FontWeight="SemiBold">
            <AppBarButton.Content>
                <FontIcon Glyph="&#xE78C;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Content>
        </AppBarButton>
        <AppBarButton x:Name="appBarButtonViewAttachments" x:Uid="AppBarButtonPreviewAttachments" Label="XX Preview" Click="_appBarButtonViewAttachments_Click" FontWeight="SemiBold">
            <AppBarButton.Content>
                <FontIcon Glyph="&#xE890;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Content>
        </AppBarButton>
        <AppBarButton x:Name="appBarButtonPrint" x:Uid="AppBarButtonPrint" Label="XX Print" Click="_appBarButtonPrint_Click" FontWeight="SemiBold" DynamicOverflowOrder="3">
            <AppBarButton.Content>
                <FontIcon Glyph="&#xE749;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Content>
        </AppBarButton>
        <AppBarSeparator x:Name="appBarSeparator" DynamicOverflowOrder="4" />
        <AppBarButton x:Name="appBarButtonFilterDates" x:Uid="AppBarButtonFilterDates" Label="Filter Dates" Click="_appBarButtonFilterDates_Click" FontWeight="SemiBold" DynamicOverflowOrder="5">
            <AppBarButton.Content>
                <FontIcon Glyph="&#xE787;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Content>
        </AppBarButton>
    </CommandBar>
</UserControl>
