<?xml version="1.0" encoding="utf-8" ?>
<local:DrawServicePageControlBase
    x:Class="RodelAgent.UI.Controls.Draw.DrawServiceHeader"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:ext="using:RodelAgent.UI.Extensions"
    xmlns:itemcontrol="using:RodelAgent.UI.Controls.Items"
    xmlns:items="using:RodelAgent.UI.ViewModels.Items"
    xmlns:local="using:RodelAgent.UI.Controls.Draw"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid
        Padding="20,0"
        VerticalAlignment="Stretch"
        BorderBrush="{ThemeResource DividerStrokeColorDefaultBrush}"
        BorderThickness="0,0,0,1"
        ColumnSpacing="12">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <TextBlock
            HorizontalAlignment="Left"
            VerticalAlignment="Center"
            FontSize="18"
            Style="{StaticResource BodyStrongTextBlockStyle}"
            Text="{ext:Locale Name=ImageGenerate_Full}"
            TextTrimming="CharacterEllipsis" />
        <ComboBox
            x:Name="ServiceSelection"
            Grid.Column="1"
            MinWidth="120"
            VerticalAlignment="Center"
            AutomationProperties.Name="{ext:Locale Name=AvailableService}"
            ItemsSource="{x:Bind ViewModel.AvailableServices, Mode=OneWay}"
            SelectedItem="{x:Bind ViewModel.Session.DrawService, Mode=OneWay}"
            SelectionChanged="OnServiceSelectionChanged"
            ToolTipService.ToolTip="{ext:Locale Name=AvailableService}">
            <ComboBox.ItemTemplate>
                <DataTemplate x:DataType="items:DrawServiceItemViewModel">
                    <itemcontrol:DrawServiceItemControl Style="{StaticResource SelectionDrawServiceStyle}" ViewModel="{x:Bind}" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
    </Grid>
</local:DrawServicePageControlBase>
