<UserControl x:Class="OliviaAddInPro.PaneRecogidaView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
             xmlns:local="clr-namespace:OliviaAddInPro"
             xmlns:localMenu="clr-namespace:OliviaAddInPro"
             xmlns:viewModel="clr-namespace:OliviaAddInPro"
             xmlns:view="clr-namespace:OliviaAddInPro"
             xmlns:frameworkControls="clr-namespace:ArcGIS.Desktop.Framework.Controls;assembly=ArcGIS.Desktop.Framework"   
             xmlns:ui="clr-namespace:OliviaAddInPro"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             d:DataContext="{Binding Path=ui.PaneRecogidaViewModel}">
     <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <!--Datatemplate to view the items in the  Sub Panel Indicator list box control-->
            <DataTemplate x:Key="SubPanelListItem" DataType="{x:Type localMenu:OptionsMenuItem}">
                <Image Stretch="Fill" Width="24" Height="24" Source="{Binding Path=ImageSource}" >
                    <Image.ToolTip>
                        <ToolTip Content="{Binding Path=OptionString}"/>
                    </Image.ToolTip>
                </Image>
            </DataTemplate>
            <!--DataTemplate to view when you select an item in the sub panel list control-->
            <DataTemplate DataType="{x:Type viewModel:PaneRecogidaSub1ViewModel}">
                <view:PaneRecogidaSub1View/>
            </DataTemplate>
            <DataTemplate DataType="{x:Type viewModel:PaneLimpiezaSub2ViewModel}">
                <view:PaneLimpiezaSub2View/>
            </DataTemplate>
            <DataTemplate DataType="{x:Type viewModel:PaneLimpiezaSub3ViewModel}">
                <view:PaneLimpiezaSub3View/>
            </DataTemplate>
            <DataTemplate DataType="{x:Type viewModel:PaneLimpiezaSub4ViewModel}">
                <view:PaneLimpiezaSub4View/>
            </DataTemplate>            
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid MinHeight="200" MinWidth="300" x:Name="GridReco">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
            <frameworkControls:TabIndicator HorizontalAlignment="Stretch"
                    Margin="0,0,6,0"
                    HorizontalContentAlignment="Left"
                    ItemTemplate="{StaticResource SubPanelListItem}"
                    ItemsSource="{Binding OptionsMenu}" 
                    SelectedItem="{Binding SelectedOption}">
            </frameworkControls:TabIndicator>
        </StackPanel>
        <StackPanel Grid.Row="1">
            <ContentPresenter Content="{Binding CurrentSubPanelPage}"/>
        </StackPanel>
        <StackPanel Grid.Row="2" Margin="0,20,0,0">
            <ContentPresenter Name="PaneEjecutar">
                <ContentPresenter.Content>
                    <StackPanel Orientation="Vertical">
                        <Grid Margin="0,10,0,0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="100"/>
                                <ColumnDefinition Width="100"/>
                                <ColumnDefinition Width="100"/>
                            </Grid.ColumnDefinitions>
                            <Button x:Name="button_secto" Grid.Column="1" Style="{DynamicResource Esri_Button}" Content="Sectorizar" Margin="10,0,10,0" Click="button_secto_Click"/>
                            <Button x:Name="button_planif" Grid.Column="2" Style="{DynamicResource Esri_Button}" Content="Planificar" Margin="10,0,10,0" Click="button_planif_Click"/>
                        </Grid>
                    </StackPanel>
                </ContentPresenter.Content>                
            </ContentPresenter>
        </StackPanel>
        <StackPanel Grid.Row="3" Margin="0,70,10,0">
            <Button x:Name="button_help" Content="" Margin="0,0,0,0" HorizontalAlignment="Right" VerticalAlignment="Top" Width="16" Height="16" BorderThickness="0" RenderTransformOrigin="16.875,0.375" Click="button_help_Click">
                <Button.Background>
                    <ImageBrush ImageSource="../../Images/help16Pro.png"/>
                </Button.Background>
            </Button>
        </StackPanel>
    </Grid>
</UserControl>
