<UserControl x:Class="OliviaAddInPro.PaneConfigView"
             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:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"
             xmlns:local="clr-namespace:OliviaAddInPro"
             xmlns:ui="clr-namespace:OliviaAddInPro"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800"
             d:DataContext="{Binding Path=ui.PaneConfigViewModel}">
    <StackPanel Height="auto" VerticalAlignment="Top" >
        <Grid Height="auto" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Button Content="Guardar" Grid.Column="0" VerticalAlignment="Top" Width="75" Style="{DynamicResource Esri_Button}" Click="OnGuardar"/>
            <Button Content="Releer Config." Grid.Column="1"  VerticalAlignment="Top" Style="{DynamicResource Esri_Button}"  Click="OnRefres"/>
        </Grid>
        <xctk:PropertyGrid x:Name="Configuracion"  SelectedObject="{Binding Configuracion}" HorizontalAlignment="Stretch" PropertyValueChanged="Configuracion_PropertyValueChanged"  ShowDescriptionByTooltip="True">
            <xctk:PropertyGrid.CategoryGroupHeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding}" Background="{DynamicResource Esri_BackgroundPressedBrush}" Foreground="{DynamicResource Esri_TextStyleDefaultBrush}"/>                    
                </DataTemplate>
            </xctk:PropertyGrid.CategoryGroupHeaderTemplate>
        </xctk:PropertyGrid>
    </StackPanel>


</UserControl>
