<Window x:Class="NBCdemo.MainWindow" Title="MainWindow" Height="600" Width="800"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:local="clr-namespace:NBCdemo">

	<Window.Resources>
		<Style x:Key="DragDropHighlightStyle" TargetType="telerik:HighlightItem">
			<Setter Property="Background" Value="White" />
			<Setter Property="BorderBrush" Value="Red" />
			<Setter Property="BorderThickness" Value="1" />
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate>
						<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="{TemplateBinding BorderThickness}">
							<Grid>
								<Path Width="8" Height="8" Margin="-2" HorizontalAlignment="Left"
										VerticalAlignment="Top" SnapsToDevicePixels="False" Stroke="Black">
									<Path.Data>
										<GeometryGroup>
											<EllipseGeometry RadiusX="2" RadiusY="2" Center="2 2" />
											<LineGeometry StartPoint="3 3" EndPoint="8 8" />
										</GeometryGroup>
									</Path.Data>
								</Path>
								<!--You can change the StringFormat value to adjust the formatting of the Start time -->
								<TextBlock x:Name="StartTextBox" Margin="4 2" Foreground="Black"
										HorizontalAlignment="Left" VerticalAlignment="Top"
										Text="{Binding Start, StringFormat=t}" />
								<Path Width="8" Height="8" Margin="-2" HorizontalAlignment="Right"
										VerticalAlignment="Bottom" SnapsToDevicePixels="False" Stroke="Black">
									<Path.Data>
										<GeometryGroup>
											<EllipseGeometry RadiusX="2" RadiusY="2" Center="6 6" />
											<LineGeometry StartPoint="0 0" EndPoint="5 5" />
										</GeometryGroup>
									</Path.Data>
								</Path>
								<!--You can change the StringFormat value to adjust the formatting of the End time -->
								<TextBlock x:Name="EndTextBox" Margin="4 2" Foreground="Black"
										HorizontalAlignment="Right" VerticalAlignment="Bottom"
										Text="{Binding End, StringFormat=t}" />
							</Grid>
						</Border>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Window.Resources>

	<Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="200" />
			<ColumnDefinition />
		</Grid.ColumnDefinitions>

		<StackPanel>
			<telerik:RadButton  Content="Click to remove old items"  Click="RadButton_Click"/>
		</StackPanel>

		<telerik:RadScheduleView x:Name="ScheduleView" Grid.Column="1" ResourceTypesSource="{Binding ResourceTypes}"  AppointmentsSource="{Binding Appointments}"
				>
			<telerik:RadScheduleView.GroupDescriptionsSource>
				<telerik:GroupDescriptionCollection>
					<telerik:ResourceGroupDescription  ResourceType="Rooms"/>
				</telerik:GroupDescriptionCollection>
			</telerik:RadScheduleView.GroupDescriptionsSource>

			<telerik:RadScheduleView.ViewDefinitions>
				<telerik:WeekViewDefinition Orientation="Horizontal" DayStartTime="5:00:00" DayEndTime="5:00:00" />
			</telerik:RadScheduleView.ViewDefinitions>
		</telerik:RadScheduleView>
	</Grid>
</Window>