<localSchView:AbstractAppointmentEditForm x:Class="BeWo.Scheduler.View.CommonCalendarEditForm"
										  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
										  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
										  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
										  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
										  xmlns:localSchView="clr-namespace:BeWo.Scheduler.View"
										  xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
										  xmlns:drawing="http://schemas.devexpress.com/winfx/2008/xaml/scheduler/internal"
										  mc:Ignorable="d" 
										  d:DesignHeight="300" d:DesignWidth="300">
	<localSchView:AbstractAppointmentEditForm.Resources>
		<drawing:TimeSpanToDateTimeConverter x:Key="TimeSpanToDateTimeConverter"/>
	</localSchView:AbstractAppointmentEditForm.Resources>
	<Grid Margin="3">
        <Grid.RowDefinitions>
			<RowDefinition Height="Auto" /><!-- 0 Betreff -->
			<RowDefinition Height="Auto" /><!-- 1 Start, Ganztägig -->
			<RowDefinition Height="Auto" /><!-- 2 Ende -->
			<RowDefinition Height="Auto" /><!-- 3 Klient -->
			<RowDefinition Height="Auto" /><!-- 4 Button -->
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto" />
			<ColumnDefinition Width="120" />
			<ColumnDefinition Width="80" />
			<ColumnDefinition Width="*" />
		</Grid.ColumnDefinitions>

		<Label Grid.Row="0" VerticalAlignment="Center">Betreff</Label>
		<dxe:TextEdit Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="3" Margin="3" Text="{Binding Controller.Subject}" Height="23" IsEnabled="False"/>

		<Label Grid.Row="1" Grid.Column="0" VerticalAlignment="Center">Start</Label>
		<dxe:DateEdit IsEnabled="False" MaskType="DateTimeAdvancingCaret" Grid.Row="1" Grid.Column="1" Background="White" Height="23" MinWidth="80" Margin="3" EditValue="{Binding Controller.DisplayStartDate}" />
		<dxe:TextEdit Grid.Column="2" Grid.Row="1" MaskType="DateTime" Mask="t" MaskUseAsDisplayFormat="True" Margin="3" Height="23"
                                                   EditValue ="{Binding Controller.DisplayStartTime, Converter={StaticResource TimeSpanToDateTimeConverter}}" IsEnabled="False"/>
		<dxe:CheckEdit IsEnabled="False" Grid.Column="3" Grid.Row="1" Content="Ganztägiges Ereignis" EditValue ="{Binding Controller.AllDay}"/>

		<Label Grid.Row="2" Grid.Column="0" VerticalAlignment="Center">Ende</Label>
		<dxe:DateEdit IsEnabled="False" MaskType="DateTimeAdvancingCaret" Grid.Column="1" Grid.Row="2" MinWidth="80" Height="23" Margin="3"
                      EditValue="{Binding Controller.DisplayEndDate}" />
		<dxe:TextEdit Grid.Column="2" Grid.Row="2" MaskType="DateTime" Mask="t" MaskUseAsDisplayFormat="True" Margin="3" Height="23"
                                                    EditValue ="{Binding Controller.DisplayEndTime, Converter={StaticResource TimeSpanToDateTimeConverter}}" IsEnabled="False"/>

		<Label Grid.Row="3" Grid.Column="0" VerticalAlignment="Center">Klient/in</Label>
		<dxe:TextEdit Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="3" Margin="3" Text="{Binding CommonCalendarController.Customer.VollerName}" IsEnabled="False" />

		<StackPanel Grid.Row="4" Grid.ColumnSpan="4" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,8,0,3">
			<Button Margin="3" Click="button_cancel_Click" Height="25" Width="80">Abbrechen</Button>
		</StackPanel>
	</Grid>
</localSchView:AbstractAppointmentEditForm>
