<Window x:Class="Wpf_RadScheduleView.MainWindow"
		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:Wpf_RadScheduleView"
		Title="MainWindow" Height="350" Width="790">

	<Window.Resources>
		<Style TargetType="telerik:TimeRulerItem">
			<Setter Property="Visibility" Value="Collapsed" />
			<Setter Property="Width" Value="0" />
			<Setter Property="Height" Value="0" />
		</Style>
		
		<Style TargetType="telerik:GroupHeader">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="telerik:GroupHeader">
						<Border BorderBrush="Gray" BorderThickness="1">
							<Border HorizontalAlignment="Left" BorderBrush="Red" BorderThickness="1">
								<StackPanel>
									<TextBlock Text="{Binding Content.Name.ResourceName, RelativeSource={RelativeSource TemplatedParent}}" />
									<Image Source="{Binding Content.Name.Image, RelativeSource={RelativeSource TemplatedParent}}" Stretch="None" />
								</StackPanel>
							</Border>
						</Border>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Window.Resources>

	<Grid>
		<telerik:RadScheduleView x:Name="scheduleview" AppointmentsSource="{Binding Appointments}" TimeRulerItemStyleSelector="{x:Null}" GroupHeaderStyleSelector="{x:Null}">
			<telerik:RadScheduleView.ViewDefinitions>
				<telerik:TimelineViewDefinition VisibleDays="62" MajorTickLength="1day" MinorTickLength="1day" MinTimeRulerExtent="6400"/>
			</telerik:RadScheduleView.ViewDefinitions>
			<telerik:RadScheduleView.ResourceTypesSource>
				<telerik:ResourceTypeCollection>
					<telerik:ResourceType Name="Location">
						<local:MyResource ResourceName="Resource 1" Image="/Wpf_RadScheduleView;component/Images/img1.png" />
						<local:MyResource ResourceName="Resource 2" Image="/Wpf_RadScheduleView;component/Images/img2.png" />
						<local:MyResource ResourceName="Resource 3" />
					</telerik:ResourceType>
				</telerik:ResourceTypeCollection>
			</telerik:RadScheduleView.ResourceTypesSource>
			<telerik:RadScheduleView.GroupDescriptionsSource>
				<telerik:GroupDescriptionCollection>
					<telerik:DateGroupDescription />
					<telerik:ResourceGroupDescription ResourceType="Location" />
				</telerik:GroupDescriptionCollection>
			</telerik:RadScheduleView.GroupDescriptionsSource>
		</telerik:RadScheduleView>
	</Grid>
</Window>