<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
    xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
    xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
    xmlns:dxspch="http://schemas.devexpress.com/winfx/2008/xaml/spellchecker"
    xmlns:local="clr-namespace:tsWPF.Plantillas" >
    

    <dx:FormatStringConverter x:Key="FormatStringConverter" FormatString="D" />
    <dx:ImageDataConverter x:Key="ImageDataConverter" />
    <local:DateTimeToTimeSpanConverter x:Key="DateTimeToTimeSpanConverter" />
    <local:TimeSpanConverter x:Key="TimeSpanConverter" />
    <local:Impar x:Key="Impar" />



    <Style x:Key="tsStyle" TargetType="{x:Type dxe:TextEdit}" >
        <Style.Triggers>
            <Trigger Property="IsReadOnly" Value="true">
                <Setter Property="Foreground" Value="DimGray"   />
                <Setter Property="FontStyle"  Value="Italic"  />
            </Trigger>
        </Style.Triggers>
        <Setter Property="dxmvvm:Interaction.BehaviorsTemplate">
            <Setter.Value>
                <DataTemplate>
                    <ContentControl>
                        <local:TrimTextOnLostFocusBehavior/>
                    </ContentControl>
                </DataTemplate>
            </Setter.Value>
        </Setter>

        <Setter Property="BorderTemplate">
            <Setter.Value>
                <ControlTemplate  TargetType="{x:Type ContentControl}">
                    <Border Name="border" BorderThickness="1.75" Background="White" BorderBrush="Gray">
                        <ContentPresenter />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocusWithin" Value="True">
                            <!--<Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard >
                                        <Storyboard Storyboard.TargetName="border" TargetProperty="(BorderBrush).(SolidColorBrush.Color)">
                                            <ColorAnimation From="OrangeRed" To="LightGray"   Duration="0:0:0.5" AutoReverse="True" RepeatBehavior="Forever" />
                                        </Storyboard>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>-->
                            <Setter Property="Background" Value="White" TargetName="border" />
                            <Setter Property="BorderBrush" Value="Blue" TargetName="border" />
                            <Setter Property="BorderThickness" Value="1.75" TargetName="border" />
                            <Setter Property="CornerRadius" Value="3" TargetName="border" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--<ControlTemplate x:Key="tsBorde" TargetType="{x:Type ContentControl}">
        <Border Name="border" BorderThickness="1" Background="White" BorderBrush="Gray">
            <ContentPresenter />
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsKeyboardFocusWithin" Value="True">
                <Trigger.EnterActions>
                    <BeginStoryboard>
                        <Storyboard >
                            <Storyboard Storyboard.TargetName="border" TargetProperty="(BorderBrush).(SolidColorBrush.Color)">
                                <ColorAnimation From="Red" To="Green" Duration="0:0:1" AutoReverse="True" RepeatBehavior="Forever" />
                            </Storyboard>
                        </Storyboard>
                    </BeginStoryboard>
                </Trigger.EnterActions>
                <Setter Property="Background" Value="White" TargetName="border" />
                <Setter Property="BorderBrush" Value="Blue" TargetName="border" />
                <Setter Property="BorderThickness" Value="1.2" TargetName="border" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>-->
      <Style x:Key="tsStylecbe" TargetType="{x:Type dxe:ComboBoxEdit}">
        <Style.Triggers>
            <Trigger Property="IsReadOnly" Value="True">
                <Setter Property="Opacity"  Value="1"  />
                <Setter Property="Foreground" Value="DimGray"  />
                <Setter Property="FontStyle"  Value="Italic"   />
                <Setter Property="FontWeight" Value="SemiBold"     />
            </Trigger>
        </Style.Triggers>
        <Setter Property="BorderTemplate">
            <Setter.Value>
                <ControlTemplate  TargetType="{x:Type ContentControl}">
                    <Border Name="border" BorderThickness="1.75" Background="White" BorderBrush="Gray">
                        <ContentPresenter />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocusWithin" Value="True">
                            <!--<Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard >
                                        <Storyboard Storyboard.TargetName="border" TargetProperty="(BorderBrush).(SolidColorBrush.Color)">
                                            <ColorAnimation From="OrangeRed" To="LightGray"   Duration="0:0:0.5" AutoReverse="True" RepeatBehavior="Forever" />
                                        </Storyboard>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>-->
                            <Setter Property="Background" Value="White" TargetName="border" />
                            <Setter Property="BorderBrush" Value="blue" TargetName="border" />
                            <Setter Property="BorderThickness" Value="1.75" TargetName="border" />
                            <Setter Property="CornerRadius" Value="3" TargetName="border" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="tsStylebe" TargetType="{x:Type dxe:ButtonEdit }">
        <Style.Triggers>
            <Trigger Property="IsReadOnly" Value="true">
                <Setter Property="Foreground" Value="Black"    />
                <Setter Property="FontStyle"  Value="Italic"     />
                <Setter Property="FontWeight" Value="SemiBold"  />
                <Setter Property="Opacity"  Value="1"  />
            </Trigger>
        </Style.Triggers>
        <Setter Property="BorderTemplate">
            <Setter.Value>
                <ControlTemplate  TargetType="{x:Type ContentControl}">
                    <Border Name="border" BorderThickness="1.75" Background="White" BorderBrush="Gray">
                        <ContentPresenter />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocusWithin" Value="True">
                            <!--<Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard >
                                        <Storyboard Storyboard.TargetName="border" TargetProperty="(BorderBrush).(SolidColorBrush.Color)">
                                            <ColorAnimation From="OrangeRed" To="LightGray"   Duration="0:0:0.5" AutoReverse="True" RepeatBehavior="Forever" />
                                        </Storyboard>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>-->
                            <Setter Property="Background" Value="White" TargetName="border" />
                            <Setter Property="BorderBrush" Value="Blue" TargetName="border" />
                            <Setter Property="BorderThickness" Value="1.75" TargetName="border" />
                            <Setter Property="CornerRadius" Value="3" TargetName="border" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <DataTemplate x:Key="VerDetalleTemplate">
        <Button Margin="4,0" Foreground="{Binding (TextElement.Foreground), RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Center" Cursor="Hand" Command="{Binding View.DataControl.ComandoDelegado}" CommandParameter="{Binding}" ClickMode="Press"  >
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ContentPresenter />
                </ControlTemplate>
            </Button.Template>
            <Button.Content>
                <Grid Background="Transparent" >
                    <dxe:TextEdit  Name="PART_Editor" TextDecorations="Underline"  >
                        <dxe:TextEdit.Style >
                            <Style TargetType="{x:Type dxe:TextEdit}" >
                                <Setter Property="Foreground" Value="#FF2A6DBD"/>
                                <Style.Triggers>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter Property="Foreground" Value="#FF2A6DBD" />
                                    </Trigger>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter Property="Foreground" Value="#FF5E9AE2" />
                                    </Trigger>
                                </Style.Triggers>
                            </Style>
                        </dxe:TextEdit.Style>
                    </dxe:TextEdit>
                </Grid>
            </Button.Content>
        </Button>
    </DataTemplate>
    <DataTemplate x:Key="VerDetalleNullTemplate">
        <Button Margin="4,0" Foreground="{Binding (TextElement.Foreground), RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Center" Cursor="Hand" Command="{Binding View.DataControl.ComandoDelegado}" CommandParameter="{Binding}" ClickMode="Press"  >
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ContentPresenter />
                </ControlTemplate>
            </Button.Template>
            <Button.Content>
                <Grid Background="Transparent" >
                    <dxe:TextEdit  Name="PART_Editor" TextDecorations="Underline" NullText="« NO ASIGNADO »" >
                        <dxe:TextEdit.Style >
                            <Style TargetType="{x:Type dxe:TextEdit}" >
                                <Setter Property="Foreground" Value="#FF2A6DBD"/>
                                <Style.Triggers>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter Property="Foreground" Value="#FF2A6DBD" />
                                    </Trigger>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter Property="Foreground" Value="#FF5E9AE2" />
                                    </Trigger>

                                </Style.Triggers>

                            </Style>
                        </dxe:TextEdit.Style>
                    </dxe:TextEdit>
                </Grid>
            </Button.Content>
        </Button>
    </DataTemplate>
    <DataTemplate x:Key="VerDetalleFechaTemplate">
        <Button Margin="4,0" Foreground="{Binding (TextElement.Foreground), RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Center" Cursor="Hand" Command="{Binding View.DataControl.ComandoDelegado}" CommandParameter="{Binding}" ClickMode="Press"  >
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ContentPresenter />
                </ControlTemplate>
            </Button.Template>
            <Button.Content>
                <Grid Background="Transparent" >
                    <dxe:DateEdit  Name="PART_Editor" TextDecorations="Underline" DisplayFormatString="d" >
                        <dxe:TextEdit.Style >
                            <Style TargetType="{x:Type dxe:DateEdit}" >
                                <Setter Property="Foreground" Value="#FF2A6DBD"/>
                                <Style.Triggers>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter Property="Foreground" Value="#FF2A6DBD" />
                                    </Trigger>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter Property="Foreground" Value="#FF5E9AE2" />
                                    </Trigger>
                                </Style.Triggers>

                            </Style>
                        </dxe:TextEdit.Style>
                    </dxe:DateEdit>
                </Grid>
            </Button.Content>
        </Button>
    </DataTemplate>
    <DataTemplate x:Key="VerDetalleHoraTemplate">
        <Button Margin="4,0" Foreground="{Binding (TextElement.Foreground), RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Center" Cursor="Hand" Command="{Binding View.DataControl.ComandoDelegado}" CommandParameter="{Binding}" ClickMode="Press"  >
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ContentPresenter />
                </ControlTemplate>
            </Button.Template>
            <Button.Content>
                <Grid Background="Transparent" >
                    <dxe:DateEdit  Name="PART_Editor" TextDecorations="Underline" DisplayFormatString="HH:mm" >
                        <dxe:TextEdit.Style >
                            <Style TargetType="{x:Type dxe:DateEdit}" >
                                <Setter Property="Foreground" Value="#FF2A6DBD"/>
                                <Style.Triggers>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter Property="Foreground" Value="#FF2A6DBD" />
                                    </Trigger>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter Property="Foreground" Value="#FF5E9AE2" />
                                    </Trigger>
                                </Style.Triggers>

                            </Style>
                        </dxe:TextEdit.Style>
                    </dxe:DateEdit>
                </Grid>
            </Button.Content>
        </Button>
    </DataTemplate>    

    <DataTemplate x:Key="VerDetalleCentradoTemplate">
        <Button Margin="4,0" Foreground="{Binding (TextElement.Foreground), RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Center" Cursor="Hand" Command="{Binding View.DataControl.ComandoDelegado}" CommandParameter="{Binding}" ClickMode="Press"  >
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ContentPresenter />
                </ControlTemplate>
            </Button.Template>
            <Button.Content>
                <Grid Background="Transparent" >
                    <dxe:TextEdit HorizontalAlignment="Center" Name="PART_Editor" TextDecorations="Underline"  >
                        <dxe:TextEdit.Style >
                            <Style TargetType="{x:Type dxe:TextEdit}" >
                                <Setter Property="Foreground" Value="#FF2A6DBD"/>
                                <Style.Triggers>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter Property="Foreground" Value="#FF2A6DBD" />
                                    </Trigger>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter Property="Foreground" Value="#FF5E9AE2" />
                                    </Trigger>

                                </Style.Triggers>

                            </Style>
                        </dxe:TextEdit.Style>
                    </dxe:TextEdit>
                </Grid>
            </Button.Content>
        </Button>
    </DataTemplate>


    
    <DataTemplate x:Key="ImprimirTemplate">
        <Button Margin="4,0" Foreground="{Binding (TextElement.Foreground), RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Center" Cursor="Hand" Command="{Binding View.DataControl.ComandoDelegado}" CommandParameter="{Binding}" ClickMode="Press"  >
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <ContentPresenter />
                </ControlTemplate>
            </Button.Template>
            <Button.Content>
                <Grid Background="Transparent">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="19" />
                    </Grid.ColumnDefinitions>
                    <dxe:TextEdit Name="PART_Editor" Grid.Column="0"/>
                    <Image Source="/tsWPF;component/Images/Icons/print-16x16.png" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center" Width="16" Height="16" Grid.Column="1" />                    
                </Grid>
            </Button.Content>
        </Button>
    </DataTemplate>
    <DataTemplate x:Key="FicheroTemplate">
        <local:SendEmailButton Margin="4,0" VerticalAlignment="Center" Cursor="Hand" Content="{Binding Value}" Command="{Binding View.DataControl.ComandoDelegado}" CommandParameter="{Binding}" ClickMode="Press" >
            <local:SendEmailButton.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid Background="Transparent">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="19" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Name="text" Margin="0,0,0,1" Text="{TemplateBinding Content}" VerticalAlignment="Center" Grid.Column="0" />
                        <Button Width="16" Height="16" Grid.Column="1" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <DataTrigger Binding="{Binding Path=RowData.IsFocused}" Value="False">
                            <Setter Property="Foreground" Value="#FF2A6DBD" TargetName="text" />
                            <!--<Setter Property="Fill" Value="#FF2A6DBD" TargetName="path" />-->
                        </DataTrigger>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding Path=RowData.IsFocused}" Value="False" />
                                <Condition Binding="{Binding Path=IsMouseOver, RelativeSource={RelativeSource Self}}" Value="True" />
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Foreground" Value="#FF5E9AE2" TargetName="text" />
                            <!--<Setter Property="Fill" Value="#FF5E9AE2" TargetName="path" />-->
                        </MultiDataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </local:SendEmailButton.Template>
        </local:SendEmailButton>
    </DataTemplate>
    <DataTemplate x:Key="eMailTemplate">
        <local:SendEmailButton Margin="4,0" VerticalAlignment="Center" Cursor="Hand" Content="{Binding Value}" Command="{Binding View.DataControl.ComandoDelegado}" CommandParameter="{Binding}" ClickMode="Press"  >
            <local:SendEmailButton.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid Background="Transparent">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="19" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Name="text" Margin="0,0,0,1" Text="{TemplateBinding Content}" VerticalAlignment="Center" />
                        <!--<Path x:Name="path" Stretch="Fill" Fill="{TemplateBinding Foreground}" Data="F1 M 648,462L 644,466L 643,465L 646,462L 643,459L 644,458L 648,462 Z M 652,462L 648,466L 647,465L 650,462L 647,459L 648,458L 652,462 Z " HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center" Width="8" Height="7" Grid.Column="1" />-->
                    </Grid>
                    <ControlTemplate.Triggers>
                        <DataTrigger Binding="{Binding Path=RowData.IsFocused}" Value="False">
                            <Setter Property="Foreground" Value="#FF2A6DBD" TargetName="text" />
                            <!--<Setter Property="Fill" Value="#FF2A6DBD" TargetName="path" />-->
                        </DataTrigger>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding Path=RowData.IsFocused}" Value="False" />
                                <Condition Binding="{Binding Path=IsMouseOver, RelativeSource={RelativeSource Self}}" Value="True" />
                            </MultiDataTrigger.Conditions>
                            <Setter Property="Foreground" Value="#FF5E9AE2" TargetName="text" />
                            <!--<Setter Property="Fill" Value="#FF5E9AE2" TargetName="path" />-->
                        </MultiDataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </local:SendEmailButton.Template>
        </local:SendEmailButton>
    </DataTemplate>
    <DataTemplate x:Key="DetailCoreTemplate">
        <dx:MeasurePixelSnapper>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="12" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <dxe:ImageEdit MaxWidth="150" HorizontalAlignment="Left" VerticalAlignment="Top" Source="{Binding Path=Row.Photo, Converter={StaticResource ImageDataConverter}}" Grid.Column="0" Width="{Binding Path=CellData[0].Column.ActualDataWidth}" ShowMenu="False" />
                <Grid Grid.Column="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="12" />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <TextBlock Grid.Column="0" Grid.Row="0" Text="Name:" />
                    <TextBlock Grid.Column="0" Grid.Row="1" Text="Position:" />
                    <TextBlock Grid.Column="0" Grid.Row="2" Text="Hire Date:" />
                    <TextBlock Grid.Column="0" Grid.Row="3" Text="About:" />
                    <TextBlock Grid.Column="0" Grid.Row="4" Text="Address:" />
                    <TextBlock Grid.Column="2" Grid.Row="0" Text="{Binding Row.FirstName}" />
                    <TextBlock Grid.Column="2" Grid.Row="1" Text="{Binding Row.Title}" />
                    <TextBlock Grid.Column="2" Grid.Row="2" Text="{Binding Row.HireDate, Converter={StaticResource FormatStringConverter}}" />
                    <TextBlock Grid.Column="2" Grid.Row="3" HorizontalAlignment="Left" Text="{Binding Row.Notes}" TextWrapping="Wrap" />
                    <TextBlock Grid.Column="2" Grid.Row="4" Text="{Binding Row.Address}" />
                </Grid>
            </Grid>
        </dx:MeasurePixelSnapper>
    </DataTemplate>
    <ControlTemplate x:Key="detailContainerTemplate" TargetType="{x:Type ContentControl}">
        <Border BorderThickness="0,1,0,0" BorderBrush="{TemplateBinding BorderBrush}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Padding="12,12,12,12" Background="{TemplateBinding Background}">
            <ContentPresenter />
        </Border>
    </ControlTemplate>
    <DataTemplate x:Key="rowDetailTemplate">
        <StackPanel Orientation="Vertical">
            <dx:MeasurePixelSnapper>
                <ContentPresenter x:Name="defaultRowPresenter" Content="{Binding}" ContentTemplate="{Binding View.DefaultDataRowTemplate}" />
            </dx:MeasurePixelSnapper>
            <dxg:RowDetailContainerControl Template="{StaticResource detailContainerTemplate}" Content="{Binding}" ContentTemplate="{DynamicResource DetailCoreTemplate}" />
        </StackPanel>
    </DataTemplate>
    <DataTemplate x:Key="expandableRowDetailTemplate">
        <StackPanel Orientation="Vertical">
            <dx:MeasurePixelSnapper>
                <ContentPresenter x:Name="defaultRowPresenter" Content="{Binding}" ContentTemplate="{Binding View.DefaultDataRowTemplate}" />
            </dx:MeasurePixelSnapper>
            <dx:DXExpander IsExpanded="{Binding Path=IsSelected}" HorizontalExpand="None" VerticalExpand="FromTopToBottom">
                <dxg:RowDetailContainerControl Template="{StaticResource detailContainerTemplate}" Content="{Binding}" ContentTemplate="{DynamicResource DetailCoreTemplate}" />
            </dx:DXExpander>
        </StackPanel>
    </DataTemplate>
    <DataTemplate x:Key="rowToolTipTemplate">
        <ContentPresenter Content="{Binding}" ContentTemplate="{Binding View.DefaultDataRowTemplate}">
            <ToolTipService.InitialShowDelay>10</ToolTipService.InitialShowDelay>
            <ToolTipService.HasDropShadow>false</ToolTipService.HasDropShadow>
            <ToolTipService.ToolTip>
                <ContentControl Content="{Binding}" ContentTemplate="{DynamicResource DetailCoreTemplate}" Tag="Transparent" MaxWidth="600"/>
            </ToolTipService.ToolTip>
        </ContentPresenter>
    </DataTemplate>


    <Style x:Key="rejillaPijama" TargetType="{x:Type dxg:RowControl}"  >
        <Style.Triggers>
            <DataTrigger Binding="{Binding RowHandle, Converter={StaticResource Impar}}" Value="True">
                <Setter Property="Background"  Value="Gainsboro"  />
            </DataTrigger>           
            <DataTrigger Binding="{Binding IsSelected}" Value="True">
                <Setter Property="Background"  Value="LightBlue"    />
            </DataTrigger>
        </Style.Triggers>
    </Style>


    <dxspch:DXSpellChecker x:Key="CorrectorOrtografico"
									   UnderlineColor="#FFAA3A37" 
									   IgnoreEmails="True"  
									   Culture="es-ES" 
									   ShowSpellCheckMenu="True"
                                       CheckAsYouType="True" 
                                       SpellingFormType="Word">
        <dxspch:DXSpellChecker.Dictionaries>
            <dxspch:SpellCheckerOpenOfficeDictionary AlphabetUri="pack://siteoforigin:,,,/Diccionarios/Spanish.txt" 
															Culture="es-ES" 
															DictionaryUri="pack://siteoforigin:,,,/Diccionarios/Spanish.dic" 
															GrammarUri="pack://siteoforigin:,,,/Diccionarios/Spanish.aff"/>
        </dxspch:DXSpellChecker.Dictionaries>
        <!--endregion #DXSpellChecker-->
    </dxspch:DXSpellChecker>

</ResourceDictionary>

