<UserControl x:Class="RadTimePicker.DateTimePicker"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:this="clr-namespace:RadTimePicker"
        xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input">
    <Grid x:Name="LayoutRoot" Background="White">
        <StackPanel>
            <StackPanel Margin="0 0 0 0" Width="300" Orientation="Horizontal">
                <telerikInput:RadMaskedTextBox Width="150"
                        Value="{Binding SelectedDate, Mode=TwoWay}" MaskType="DateTime"
                        Mask="dd/MM/yyyy hh:mm:tt" />
                <telerikInput:RadDatePicker DayTemplate="{x:Null}" Width="22" x:Name="radDatePicker"
                        SelectedDate="{Binding SelectedDate, Mode=TwoWay}">
                    <telerikInput:RadDatePicker.DayTemplateSelector>
                        <this:CustomTemplate>
                            <this:CustomTemplate.DefaultTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Text}" />
                                </DataTemplate>
                            </this:CustomTemplate.DefaultTemplate>
                        </this:CustomTemplate>
                    </telerikInput:RadDatePicker.DayTemplateSelector>
                </telerikInput:RadDatePicker>
                <telerikInput:RadTimePicker Width="20"
                        SelectedTime="{Binding SelectedTime, Mode=TwoWay}" />
            </StackPanel>

            <StackPanel Orientation="Horizontal" Margin="0 50 0 0">
                <TextBlock Text="Selected Time:" />
                <TextBlock Text="{Binding SelectedDate}" Margin="10 0 0 0" />
            </StackPanel>

            <StackPanel Orientation="Horizontal">
                <telerikInput:RadDatePicker Width="25"
                        SelectedDate="{Binding SelectedDate, Mode=TwoWay}" />
                <telerikInput:RadTimePicker Width="25"
                        SelectedTime="{Binding SelectedTime, Mode=TwoWay}" />
                <TextBox IsReadOnly="True" Text="{Binding SelectedDate}" />
            </StackPanel>

        </StackPanel>

    </Grid>
</UserControl>
