<dx:DXWindow
    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:dxre="http://schemas.devexpress.com/winfx/2008/xaml/richedit"
    xmlns:tsWPF="clr-namespace:tsWPF"      
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
    xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol" 
    x:Class="dxwCalculadoraFecha"
    Title="Introduzca Intervalo de Fechas" HorizontalAlignment="Center" Height="240"  Width="310" ShowInTaskbar="True" WindowStartupLocation="CenterScreen"   WindowStyle="SingleBorderWindow" ShowIcon="False" ResizeMode="NoResize"     >
    <Grid>
        <dxlc:LayoutControl Header="Header" Orientation="Vertical"  View="GroupBox" >
            <dxlc:LayoutGroup Orientation="Vertical"  >
                <tsWPF:tsLayoutItem Label="Fecha Inicial:" FontWeight="Bold"    TabIndex="1" >
                    <dxe:DateEdit x:Name="deFechaInicial" AllowNullInput="False" />
                </tsWPF:tsLayoutItem>
                <dxlc:LayoutGroup Orientation="Horizontal" >
                    <tsWPF:tsLayoutItem Label="Dias Naturales:" FontWeight="Bold"    TabIndex="1"   >
                        <dxe:TextEdit x:Name="DiasNaturales"   Mask="n0" MaskType="Numeric" MaskUseAsDisplayFormat="True"  AllowNullInput="False"  />
                    </tsWPF:tsLayoutItem>
                    <Button x:Name="btDiasNaturales" Click="btDiasNaturales_Click"  Width="60" Height="20">Calcular</Button>
                </dxlc:LayoutGroup>
                <dxlc:LayoutGroup Orientation="Horizontal" >
                    <tsWPF:tsLayoutItem Label="Dias Hábiles:" FontWeight="Bold"    TabIndex="1"   >
                        <dxe:TextEdit x:Name="DiasHabiles"   Mask="n0" MaskType="Numeric" MaskUseAsDisplayFormat="True" AllowNullInput="False"  />
                    </tsWPF:tsLayoutItem>
                    <Button x:Name="btDiasHabiles" Click="btDiasHabiles_Click"  Width="60" Height="20"  >Calcular</Button>
                </dxlc:LayoutGroup>
                <tsWPF:tsLayoutItem Label="Fecha Calculada:" FontWeight="Bold" HorizontalAlignment="Stretch"   >
                    <dxe:DateEdit x:Name="deFechaCalculada"  IsReadOnly="True" AllowDefaultButton="False"  />
                </tsWPF:tsLayoutItem>
            </dxlc:LayoutGroup>
            <dxlc:LayoutGroup Height="35" Margin="0,30" >
                <Button x:Name="btAceptar" Click="btAceptar_Click" Width="100" HorizontalAlignment="Left" >Aceptar</Button>

                <Button x:Name="btCancelar" Click="btCancelar_Click" Margin="60,0,0,0" Width="100">Cancelar</Button>
            </dxlc:LayoutGroup>
        </dxlc:LayoutControl>

    </Grid>
</dx:DXWindow>
