<?xml version="1.0" encoding="utf-8"?>
<UserControl
    x:Class="was.droidtransfer.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.droidtransfer.features.messaging.ux"
    xmlns:featurebase="using:was.droidtransfer.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.Icon>
                <FontIcon Glyph="&#xEA90;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Icon>
        </AppBarButton>
        <AppBarButton x:Name="appBarButtonSaveWeb" x:Uid="AppBarButtonSaveWeb" Label="XX Save as HTML" Click="_appBarButtonSaveWeb_Click" FontWeight="SemiBold" DynamicOverflowOrder="6">
            <AppBarButton.Icon>
                <FontIcon Glyph="&#xE78C;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Icon>
        </AppBarButton>
        <AppBarButton x:Name="appBarButtonSavePlainText" x:Uid="AppBarButtonSavePlainText" Label="XX Save as Text" Click="_appBarButtonSavePlainText_Click" FontWeight="SemiBold" DynamicOverflowOrder="2">
            <AppBarButton.Icon>
                <FontIcon Glyph="&#xF000;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Icon>
        </AppBarButton>
        <AppBarButton x:Name="appBarButtonSaveCSV" x:Uid="AppBarButtonSaveCSV" Label="XX Save as CSV" FontWeight="SemiBold" DynamicOverflowOrder="1">
            <AppBarButton.Flyout>
                <MenuFlyout Placement="Bottom">
                    <MenuFlyoutItem x:Name="menuFlyoutItemSaveStandardCSV" x:Uid="MenuFlyoutItemSaveStandardCSV" Text="XX Standard" Click="_menuFlyoutItemSaveStandardCSV">
                        <MenuFlyoutItem.Icon>
                            <FontIcon Glyph="&#xE9F9;" />
                        </MenuFlyoutItem.Icon>
                    </MenuFlyoutItem>
                    <MenuFlyoutItem x:Name="menuFlyoutItemSaveForensicCSV" x:Uid="MenuFlyoutItemSaveForensicCSV" Text="XX Forensic" Click="_menuFlyoutItemSaveForensicCSV">
                        <MenuFlyoutItem.Icon>
                            <FontIcon Glyph="&#xE928;" />
                        </MenuFlyoutItem.Icon>
                    </MenuFlyoutItem>
                </MenuFlyout>
            </AppBarButton.Flyout>
            <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.Icon>
                <FontIcon Glyph="&#xE78C;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Icon>
        </AppBarButton>
        <AppBarButton x:Name="appBarButtonViewAttachments" x:Uid="AppBarButtonPreviewAttachments" Label="XX Preview" Click="_appBarButtonViewAttachments_Click" FontWeight="SemiBold">
            <AppBarButton.Icon>
                <FontIcon Glyph="&#xE890;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Icon>
        </AppBarButton>
        <AppBarButton x:Name="appBarButtonPrint" x:Uid="AppBarButtonPrint" Label="XX Print" Click="_appBarButtonPrint_Click" FontWeight="SemiBold" DynamicOverflowOrder="3">
            <AppBarButton.Icon>
                <FontIcon Glyph="&#xE749;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Icon>
        </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.Icon>
                <FontIcon Glyph="&#xE787;" Foreground="{ThemeResource AccentFillColorDefaultBrush}"/>
            </AppBarButton.Icon>
        </AppBarButton>
    </CommandBar>
</UserControl>
