<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="SchedulerSamples.DayListEditorControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	
		<Grid>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition />
				<RowDefinition Height="Auto" />
			</Grid.RowDefinitions>
			<StackPanel Grid.Row="0" Orientation="Horizontal">
            <c1:C1DateTimePicker x:Name="calendar" Margin="0,5,0,5" HorizontalAlignment="Stretch" EditMode="Date" />
				<Button x:Name="btnAdd" Margin="7" Padding="2,0,2,0" Click="btnAdd_Click">Add</Button>
			</StackPanel>
			<ListBox SelectionMode="Multiple" Margin="2" x:Name="list" Grid.Row="1" ItemContainerStyle="{DynamicResource myListBoxItem}" ItemsSource="{Binding Days}" VerticalAlignment="Top">
				<ListBox.Template>
					<ControlTemplate>
						<ScrollViewer MaxHeight="160">
							<ItemsPresenter />
						</ScrollViewer>
					</ControlTemplate>
				</ListBox.Template>
				<ListBox.ItemsPanel>
					<ItemsPanelTemplate>
						<UniformGrid Columns="1" />
					</ItemsPanelTemplate>
				</ListBox.ItemsPanel>
				<ListBox.ItemTemplate>
					<DataTemplate>
						<TextBlock Margin="2" Foreground="{DynamicResource text_Brush}" Text="{Binding Date,         Converter={x:Static c1:DateTimeToStringConverter.Default},        ConverterParameter=D}" />
					</DataTemplate>
				</ListBox.ItemTemplate>
			</ListBox>
			<Button Grid.Row="2" Margin="5" x:Name="btnRemove" Click="btnRemove_Click" HorizontalAlignment="Right">Remove selected</Button>
		</Grid>
</UserControl>