<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:input="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:local="clr-namespace:CustomThemeBasedOnOfficeBlack_GridWpf;assembly=CustomThemeBasedOnOfficeBlack_GridWpf"
	    xmlns:grid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
	
	 >
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Resources.xaml"/>
    </ResourceDictionary.MergedDictionaries>
	

	<Style TargetType="grid:GridViewDatePickerEditor" 
        
		x:Key="{telerik:ThemeResourceKey ThemeType=local:CustomTheme, ElementType=grid:GridViewDatePickerEditor}"
		 >
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="grid:GridViewDatePickerEditor">
					<Grid>
						<Grid.Resources>
							<grid:NullableDateConverter x:Key="NullableDateConverter" />
						</Grid.Resources>
						<!-- Silverlight 2 does not support Converter in TemplateBinding, so we 
						use TemplateBinding for DataContext and then regular Binding with Converter
						for SelectedDate. Note that you cannot use TwoWay binding without Path! -->
						<input:RadDatePicker Name="PART_EditorControl"
								
								DataContext="{TemplateBinding Value}"
								SelectedDate="{Binding Converter={StaticResource NullableDateConverter}, Mode=OneWay}" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	
</ResourceDictionary>