<ResourceDictionary
    x:Class="Wino.Mail.WinUI.Styles.OperationCommandBarResources"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="using:Wino.Mail.WinUI.Controls">

    <Style BasedOn="{StaticResource DefaultCommandBarStyle}" TargetType="controls:OperationCommandBar">
        <Setter Property="DefaultLabelPosition" Value="Right" />
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
        <Setter Property="IsDynamicOverflowEnabled" Value="True" />
        <Setter Property="OverflowButtonVisibility" Value="Auto" />
    </Style>

    <DataTemplate x:Key="OperationCommandBarMailOperationTemplate" x:DataType="controls:OperationCommandBarMenuOperationItemViewModel">
        <AppBarButton
            MinWidth="40"
            IsEnabled="{x:Bind IsEnabled}"
            Label="{x:Bind Label}"
            LabelPosition="{x:Bind LabelPosition}"
            ToolTipService.ToolTip="{x:Bind ToolTip}">
            <AppBarButton.Icon>
                <controls:WinoFontIcon Icon="{x:Bind Icon}" />
            </AppBarButton.Icon>
        </AppBarButton>
    </DataTemplate>

    <DataTemplate x:Key="OperationCommandBarFolderOperationTemplate" x:DataType="controls:OperationCommandBarMenuOperationItemViewModel">
        <AppBarButton
            MinWidth="40"
            IsEnabled="{x:Bind IsEnabled}"
            Label="{x:Bind Label}"
            LabelPosition="{x:Bind LabelPosition}"
            ToolTipService.ToolTip="{x:Bind ToolTip}">
            <AppBarButton.Icon>
                <controls:WinoFontIcon Icon="{x:Bind Icon}" />
            </AppBarButton.Icon>
        </AppBarButton>
    </DataTemplate>

    <DataTemplate x:Key="OperationCommandBarAIActionsTemplate" x:DataType="controls:OperationCommandBarAIActionsItemViewModel">
        <AppBarToggleButton
            MinWidth="40"
            LabelPosition="Collapsed"
            ToolTipService.ToolTip="{x:Bind ToolTip}">
            <AppBarToggleButton.Icon>
                <FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph="{x:Bind Glyph}" />
            </AppBarToggleButton.Icon>
        </AppBarToggleButton>
    </DataTemplate>

    <DataTemplate x:Key="OperationCommandBarThemeToggleTemplate" x:DataType="controls:OperationCommandBarThemeItemViewModel">
        <AppBarButton
            MinWidth="40"
            LabelPosition="Collapsed"
            ToolTipService.ToolTip="{x:Bind ToolTip}">
            <AppBarButton.Icon>
                <controls:WinoFontIcon Icon="{x:Bind Icon}" />
            </AppBarButton.Icon>
        </AppBarButton>
    </DataTemplate>

    <DataTemplate x:Key="OperationCommandBarSeparatorTemplate">
        <AppBarSeparator />
    </DataTemplate>
</ResourceDictionary>
