<localView:BeWoView x:Class="BeWo.View.Detail.BookingView" 
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:localView="clr-namespace:BeWo.View" 
                    xmlns:localDetailView="clr-namespace:BeWo.View.Detail"
                    xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls" 
                    Height="Auto" Width="Auto" HorizontalAlignment="Stretch"
                    VerticalAlignment="Stretch" Focusable="True"
                    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
                    xmlns:calendar="clr-namespace:BeWo.Controls.Controls.Calendar;assembly=BeWo.Controls"
                    xmlns:core="clr-namespace:BS.Shared.Core;assembly=BS.Shared">
	<Grid>
		<uc:ShadowChrome>
			<GroupBox Style="{StaticResource MainContentGroupBoxStyle}">
				<GroupBox.Header>
					<StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" Margin="0,11,0,0">
						<Image Source="..\..\Ressources\Icons\CalendarDisabled.png" RenderTransformOrigin="0.5,0.5" Width="32">
							<Image.RenderTransform>
								<TransformGroup>
									<ScaleTransform ScaleX="1.3" ScaleY="1.3" />
									<SkewTransform AngleX="0" AngleY="0" />
									<RotateTransform Angle="0" />
									<TranslateTransform X="0" Y="-2" />
								</TransformGroup>
							</Image.RenderTransform>
						</Image>
						<TextBox Text="Ressourcenplanung" Margin="10,0,0,0" Background="{x:Null}" Foreground="{DynamicResource MainGroupBoxForegroundBrush}" FontSize="22" BorderBrush="{x:Null}" VerticalAlignment="Stretch" BorderThickness="0,0,0,0" Padding="0,0,0,0" />
					</StackPanel>
				</GroupBox.Header>
				<Grid Margin="0,3,0,0" Background="{StaticResource ObjectEditBackgroundBrush}">
					<Grid.RowDefinitions>
						<RowDefinition Height="Auto" />
						<RowDefinition Height="*" />
						<RowDefinition Height="Auto" />
					</Grid.RowDefinitions>
					<Rectangle Fill="{DynamicResource ResourceContentBrush}" Height="6" />
					<Grid x:Name="grid_root" Grid.IsSharedSizeScope="True" Grid.Row="1" Margin="10,10,10,0">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="10" />
							<ColumnDefinition Width="Auto" />
						</Grid.ColumnDefinitions>
						<GroupBox Style="{DynamicResource ObjectEditGroupBox}">
							<GroupBox.Header>
								<Grid Height="30">
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="Auto" />
										<ColumnDefinition Width="Auto" />
										<ColumnDefinition Width="Auto" />
										<ColumnDefinition Width="Auto" />
									</Grid.ColumnDefinitions>
									<TextBlock VerticalAlignment="Center" Margin="3" Text="Übersicht:" FontSize="16" Foreground="{StaticResource TabItemHotTextBrush}" FontFamily="Microsoft Sans Serif" />
									<ComboBox Margin="3" Grid.Column="1" DisplayMemberPath="TypeDescription" Name="combobox_resourceCategories" MinWidth="120" Height="20" BorderBrush="{StaticResource TextBoxBorderBrush}" BorderThickness="1" />
									<Label Grid.Column="2" VerticalAlignment="Center" Content="ab dem:" />
                                    <dxe:DateEdit MaskType="DateTimeAdvancingCaret" Margin="3" Grid.Column="3" BorderThickness="1" Height="20" EditValue="{Binding CalendarStartDate, Mode=TwoWay, ElementName=calendar}" />
								</Grid>

							</GroupBox.Header>
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<RowDefinition Height="Auto" />
									<RowDefinition Height="Auto" />
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>
								<Grid>
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="Auto" />
										<ColumnDefinition Width="*" />
									</Grid.ColumnDefinitions>
									<Button Content="Alle anzeigen" Click="Button_Click" />
									<ListBox Margin="3 0 0 0" Name="listbox_resources" HorizontalAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Left" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Visible" BorderThickness="1,1,1,1" Width="Auto" Grid.Column="1">
										<ListBox.ItemsPanel>
											<ItemsPanelTemplate>
												<StackPanel Orientation="Horizontal" />
											</ItemsPanelTemplate>
										</ListBox.ItemsPanel>
										<!-- Region Altes Template -->
										<!--<ListBox.Template>
                                            <ControlTemplate>
                                                <Border BorderBrush="#FF86878F"  BorderThickness="1"  CornerRadius="4" >
                                                    <ScrollViewer Grid.Column="0" Grid.Row="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Hidden">
                                                        <ScrollViewer.Template>
                                                            <ControlTemplate TargetType="{x:Type ScrollViewer}">
                                                                <Grid  >
                                                                    <Grid.ColumnDefinitions>
                                                                        <ColumnDefinition Width="Auto"/>
                                                                        <ColumnDefinition Width="Auto"/>
                                                                        <ColumnDefinition Width="Auto"/>
                                                                        <ColumnDefinition Width="*"/>
                                                                        <ColumnDefinition Width="Auto"/>
                                                                    </Grid.ColumnDefinitions>
                                                                    <Button Margin="2" Command="ScrollBar.LineLeftCommand"  Visibility="{TemplateBinding ScrollViewer.ComputedHorizontalScrollBarVisibility}"
                                                              Foreground="White" FontFamily="Webdings" Content="3" Padding="0" Width="18" Height="24" VerticalAlignment="Center"/>

                                                                    <ListBox Margin="5 0 0 0"   Name="listbox_ShowAllResource" SelectedIndex="0" SelectionChanged="listbox_ShowAllResource_SelectionChanged"  Grid.Column="1" BorderThickness="0" VerticalAlignment="Center">
                                                                        <ListBoxItem Height="18"    VerticalAlignment="Stretch" FontStyle="italic" >
                                                                            <TextBlock Padding="1 0 5 0" Text="Alle anzeigen" />
                                                                        </ListBoxItem>
                                                                    </ListBox>

                                                                    <Label Content="|" Grid.Column="2" VerticalAlignment="Center" />
                                                                    <ScrollContentPresenter Grid.Column="3" />

                                                                    <Button Grid.Column="4" Margin="3" Command="ScrollBar.LineRightCommand"  HorizontalAlignment="Stretch" Visibility="{TemplateBinding ScrollViewer.ComputedHorizontalScrollBarVisibility}" 
                                                   Foreground="White" FontFamily="Webdings" Content="4"  Width="18" Height="24" VerticalAlignment="Center"/>
                                                                </Grid>
                                                            </ControlTemplate>
                                                        </ScrollViewer.Template>

                                                        <StackPanel Orientation="Horizontal" IsItemsHost="True"/>
                                                    </ScrollViewer>
                                                </Border>
                                            </ControlTemplate>
                                        </ListBox.Template>-->
										<!-- EndRegion -->
										<ListBox.ItemTemplate>
											<DataTemplate>
												<Grid>
													<Grid.ColumnDefinitions>
														<ColumnDefinition Width="Auto" />
														<ColumnDefinition Width="*" />
													</Grid.ColumnDefinitions>
													<Border CornerRadius="2" BorderBrush="Black" BorderThickness="1" Width="16" Height="16" Background="{Binding Path=Color, Converter={StaticResource StringBrushConverter}}" />
													<Label Grid.Column="1" Content="{Binding Name}" />
												</Grid>
											</DataTemplate>
										</ListBox.ItemTemplate>
									</ListBox>
								</Grid>

								<Border BorderBrush="#FF86878F" Margin="0 5 0 3" BorderThickness="1" Grid.Row="2" CornerRadius="4">
									<WrapPanel Orientation="Horizontal">
										<Grid Margin="3">
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="Auto" />
												<ColumnDefinition Width="Auto" />
											</Grid.ColumnDefinitions>

                                            <dxe:SpinEdit IsFloatValue="False" Margin="3 0 0 0" MinValue="1" MaxValue="99" EditValue="{Binding Path=DaysToShowCount, ElementName=calendar, Converter={StaticResource Int2DecimalConverter}}" VerticalAlignment="Center" Width="40"/>
											<Label Grid.Column="1" Content="Tage anzeigen" />
										</Grid>
										<CheckBox Margin="3" IsChecked="{Binding Path=ShowWeekend, ElementName=calendar}" VerticalAlignment="Center" Content="Wochenenden anzeigen" />
										<CheckBox Margin="3" IsChecked="{Binding Path=ShowDatesInIndex, ElementName=calendar}" VerticalAlignment="Center" Content="Tage vertikal anzeigen" />
										<Grid Margin="3">
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="Auto" />
												<ColumnDefinition Width="Auto" />
											</Grid.ColumnDefinitions>
											<ComboBox Name="combo_Intervall" ItemsSource="{x:Static core:EnumTranslations.CalendarIntervalTranslations}" DisplayMemberPath="Value" SelectedValuePath="Key" SelectedValue="{Binding Path=TimeInterval, ElementName=calendar}" VerticalAlignment="Center" Height="23" />
											<Label Grid.Column="1" Content="Einteilung" VerticalAlignment="Center" />
										</Grid>

									</WrapPanel>
								</Border>

								<Border Grid.Row="3" Margin="0 6 0 0">
									<calendar:AppointmentCalendar x:Name="calendar" DaysToShowCount="7" ShowDatesInIndex="False" AppointmentSelected="calendar_AppointmentSelected" AppointmentDeselected="calendar_AppointmentDeselected"></calendar:AppointmentCalendar>
								</Border>


							</Grid>
						</GroupBox>
						<GroupBox x:Name="groupBoxBookingNewEdit" Grid.Column="2" Padding="7" Style="{DynamicResource ObjectEditGroupBox}">
							<GroupBox.Header>
								<TextBlock VerticalAlignment="Center" Margin="3" Text="Buchungen anlegen und ändern" Height="24" FontSize="16" Foreground="{StaticResource TabItemHotTextBrush}" FontFamily="Microsoft Sans Serif" />

							</GroupBox.Header>

							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<RowDefinition Height="Auto" />
								</Grid.RowDefinitions>

								<Expander Padding="5 1" Grid.Row="0" Header="Neue Buchung anlegen" Background="WhiteSmoke" IsExpanded="True" Name="expander_new_booking" Style="{StaticResource SimpleExpander}" Expanded="expander_new_booking_Expanded">
									<Border CornerRadius="0 0 4 4" BorderThickness="1" BorderBrush="#FF86878F">
										<Grid HorizontalAlignment="Stretch" Background="#0C000000">
											<Grid.RowDefinitions>
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
											</Grid.RowDefinitions>
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="Auto" SharedSizeGroup="editCol0" />
												<ColumnDefinition Width="*" />
												<ColumnDefinition Width="Auto" SharedSizeGroup="editCol1" />
												<ColumnDefinition Width="Auto" SharedSizeGroup="editCol2" />
												<ColumnDefinition Width="Auto" SharedSizeGroup="editCol3" />
											</Grid.ColumnDefinitions>

											<Grid Grid.ColumnSpan="5" IsEnabled="{Binding Converter={StaticResource ObjectBoolConverter}, ConverterParameter=false, Path=SelectedItem, ElementName=listbox_resources}">
												<Grid.ColumnDefinitions>
													<ColumnDefinition Width="Auto" SharedSizeGroup="editCol0" />
													<ColumnDefinition Width="*" />
												</Grid.ColumnDefinitions>
												<Label>Ressource</Label>
												<ComboBox Name="combobox_newVMResource" DisplayMemberPath="Name" Height="23" Margin="3" Grid.Column="1" />

											</Grid>


											<Label Grid.Row="1" VerticalAlignment="Center">Start</Label>
											<Label Grid.Row="2" VerticalAlignment="Center">Ende</Label>

                                            <dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Row="1" Grid.Column="1" Background="White" Height="23" MinWidth="80" Margin="3" Name="NEW_datepickerStartDate" EditValue="{Binding Path=NewVM.RootAppointment.Duration.StartDate, Mode=TwoWay}" />

											<ComboBox Grid.Row="1" Grid.Column="2" Height="23" MinWidth="40" Margin="3" ItemsSource="{x:Static localDetailView:BookingView.Hours}" DisplayMemberPath="Key" SelectedValuePath="Value" Name="NEW_comboboxStartHour" SelectedValue="{Binding Path=NewVM.RootAppointment.Duration.StartHours, Mode=TwoWay}" />
											<Label Grid.Row="1" Grid.Column="3" Content=":" Margin="0" Padding="0" VerticalAlignment="Center" />
											<ComboBox Grid.Row="1" Grid.Column="4" Height="23" MinWidth="40" Margin="3" ItemsSource="{x:Static localDetailView:BookingView.Minutes}" DisplayMemberPath="Key" SelectedValuePath="Value" Name="NEW_comboboxStartMinute" SelectedValue="{Binding Path=NewVM.RootAppointment.Duration.StartMinutes, Mode=TwoWay}" />


                                            <dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Column="1" Grid.Row="2" MinWidth="80" Height="23" Margin="3" Name="NEW_datepickerEndDate" EditValue="{Binding Path=NewVM.RootAppointment.Duration.EndDate, Mode=TwoWay}" />

											<ComboBox Grid.Column="2" Grid.Row="2" Height="23" MinWidth="40" Margin="3" ItemsSource="{x:Static localDetailView:BookingView.Hours}" DisplayMemberPath="Key" Name="NEW_comboboxEndHour" SelectedValuePath="Value" SelectedValue="{Binding Path=NewVM.RootAppointment.Duration.EndHours, Mode=TwoWay}" />
											<Label Grid.Column="3" Grid.Row="2" Content=":" Margin="0" Padding="0" VerticalAlignment="Center" />
											<ComboBox Grid.Column="4" Grid.Row="2" Height="23" MinWidth="40" Margin="3" ItemsSource="{x:Static localDetailView:BookingView.Minutes}" DisplayMemberPath="Key" Name="NEW_comboboxEndMinute" SelectedValuePath="Value" SelectedValue="{Binding Path=NewVM.RootAppointment.Duration.EndMinutes, Mode=TwoWay}" />


											<Expander Grid.Row="3" Grid.ColumnSpan="5" Grid.Column="0" Margin="3" Header="Termin Wiederholen">

												<Grid Background="WhiteSmoke">
													<Grid.ColumnDefinitions>
														<ColumnDefinition Width="Auto" />
														<ColumnDefinition Width="*" />
													</Grid.ColumnDefinitions>
													<Grid.RowDefinitions>
														<RowDefinition Height="Auto" />
														<RowDefinition Height="Auto" />
														<RowDefinition Height="Auto" />
													</Grid.RowDefinitions>

													<ComboBox Name="combobox_newFrequence" Grid.ColumnSpan="2" Height="23" Margin="3" ItemsSource="{Binding NewVM.PossibleFrequencies}" DisplayMemberPath="Translation" SelectedValuePath="Frequency" SelectedValue="{Binding Path=NewVM.Frequency}" />

													<Label Grid.Row="1" Content="Intervall" IsEnabled="{Binding ElementName=combobox_newFrequence, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}, ConverterParameter=0}" />
                                                    <dxe:SpinEdit IsFloatValue="False" Grid.Row="1" Grid.Column="1" Height="23" Margin="3" MinValue="1" MaxValue="100" EditValue="{Binding Path=NewVM.RepeatInterval, Mode=TwoWay, Converter={StaticResource Int2DecimalConverter}}" IsEnabled="{Binding ElementName=combobox_newFrequence, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}, ConverterParameter=0}" />
													<Label Grid.Row="2" Content="Bis" IsEnabled="{Binding ElementName=combobox_newFrequence, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}, ConverterParameter=0}" />
                                                    <dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Row="2" Grid.Column="1" Height="23" Margin="3" EditValue="{Binding Path=NewVM.SequenceEnd, Mode=TwoWay}" IsEnabled="{Binding ElementName=combobox_newFrequence, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}, ConverterParameter=0}" />
												</Grid>

											</Expander>
                                            <Label Grid.Row="4" Content="Mitarbeiter" />
                                            
                                            <ComboBox  Height="23" Margin="3" Grid.Row="4" Grid.Column="1" 
                                                      Name="combobox_newEmployee" Grid.ColumnSpan="4" 
                                                      PreviewMouseDoubleClick="Combobox_newEmployee_OnPreviewMouseDoubleClick"
                                                      />
											<Label Grid.Row="5" Content="Notiz" />
											<TextBox Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="4" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Height="45" Width="180" Margin="3" Text="{Binding Path=NewVM.RootAppointment.Notice}" Name="textbox_new_notice" />
											<Button Name="button_createBooking" Grid.Row="6" Grid.ColumnSpan="5" HorizontalAlignment="Stretch" Margin="3" Click="button_createBooking_Click" Height="25">Buchung anlegen</Button>
										</Grid>
									</Border>
								</Expander>

								<Expander Style="{StaticResource SimpleExpander}" Padding="5 1" Grid.Row="1" Header="Vorhandene Buchung ändern" Name="expander_edit_booking" IsExpanded="False" Background="WhiteSmoke" Margin="0 7 0 0" Loaded="expander_edit_booking_Loaded">
									<Border CornerRadius="0 0 4 4" BorderThickness="1" BorderBrush="#FF86878F">
										<Grid Background="#0C000000">
											<Grid.RowDefinitions>
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
											</Grid.RowDefinitions>
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="Auto" />
												<ColumnDefinition Width="*" />
												<ColumnDefinition Width="Auto" SharedSizeGroup="editCol1" />
												<ColumnDefinition Width="Auto" SharedSizeGroup="editCol2" />
												<ColumnDefinition Width="Auto" SharedSizeGroup="editCol3" />
											</Grid.ColumnDefinitions>
											<Label VerticalAlignment="Center">Start</Label>
											<Label Grid.Row="1" VerticalAlignment="Center">Ende</Label>

                                            <dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Column="1" Height="23" MinWidth="80" Margin="3" Name="EDIT_datepickerStartDate" />
											<ComboBox Grid.Column="2" Height="23" MinWidth="40" Margin="3" ItemsSource="{x:Static localDetailView:BookingView.Hours}" DisplayMemberPath="Key" SelectedValuePath="Value" Name="EDIT_comboStartHours" />
											<Label Grid.Column="3" Content=":" Margin="0" Padding="0" VerticalAlignment="Center" />
											<ComboBox Grid.Column="4" Height="23" MinWidth="40" Margin="3" ItemsSource="{x:Static localDetailView:BookingView.Minutes}" DisplayMemberPath="Key" SelectedValuePath="Value" Name="EDIT_comboStartMinutes" />


                                            <dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Column="1" Grid.Row="1" MinWidth="80" Height="23" Margin="3" Name="EDIT_datepickerEndDate"/>
											<ComboBox Grid.Column="2" Grid.Row="1" Height="23" MinWidth="40" Margin="3" ItemsSource="{x:Static localDetailView:BookingView.Hours}" DisplayMemberPath="Key" SelectedValuePath="Value" Name="EDIT_comboEndHours" />
											<Label Grid.Column="3" Content=":" Margin="0" Padding="0" VerticalAlignment="Center" />
											<ComboBox Grid.Column="4" Grid.Row="1" Height="23" MinWidth="40" Margin="3" ItemsSource="{x:Static localDetailView:BookingView.Minutes}" DisplayMemberPath="Key" SelectedValuePath="Value" Name="EDIT_comboEndMinutes" />


											<Expander Grid.Row="2" Grid.ColumnSpan="5" Margin="3" Header="Termin Wiederholen">
												<Grid>
													<Grid x:Name="grid_editNotSequence" Background="WhiteSmoke" Grid.ColumnSpan="2" Grid.RowSpan="3">
														<Grid.RowDefinitions>
															<RowDefinition Height="*" />
															<RowDefinition Height="Auto" />
														</Grid.RowDefinitions>
														<TextBlock TextWrapping="Wrap" HorizontalAlignment="Center" MaxWidth="190" Margin="5">
															Wiederholungsregeln können nur im ersten Serienelement festgelegt werden.
														</TextBlock>
														<Button x:Name="button_showRootElement" Grid.Row="1" HorizontalAlignment="Center" Margin="3" Height="23" Click="button_showRootElement_Click">
															erstes Element anzeigen
														</Button>
													</Grid>
													<Grid Background="WhiteSmoke" Visibility="{Binding Path=EditVM, Converter={StaticResource ObjectVisibilityConverter}}">
														<Grid.ColumnDefinitions>
															<ColumnDefinition Width="Auto" />
															<ColumnDefinition Width="*" />
														</Grid.ColumnDefinitions>
														<Grid.RowDefinitions>
															<RowDefinition Height="Auto" />
															<RowDefinition Height="Auto" />
															<RowDefinition Height="Auto" />
														</Grid.RowDefinitions>
														<ComboBox Grid.ColumnSpan="2" Height="23" Margin="3" ItemsSource="{Binding EditVM.PossibleFrequencies}" DisplayMemberPath="Translation" SelectedValuePath="Frequency" Name="EDIT_comboFrequency" />
														<Label Grid.Row="1" Content="Intervall" IsEnabled="{Binding ElementName=EDIT_comboFrequency, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}, ConverterParameter=0}" />
                                                        <dxe:SpinEdit IsFloatValue="False" Grid.Row="1" Grid.Column="1" Height="23" Margin="3" MinValue="1" MaxValue="100" Name="EDIT_spineditIntervall" IsEnabled="{Binding ElementName=EDIT_comboFrequency, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}, ConverterParameter=0}" />
														<Label Grid.Row="2" Content="Bis" IsEnabled="{Binding ElementName=EDIT_comboFrequency, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}, ConverterParameter=0}" />
                                                        <dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Row="2" Grid.Column="1" Height="23" Margin="3" Name="EDIT_datepickerSequenceEnd" IsEnabled="{Binding ElementName=EDIT_comboFrequency, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}, ConverterParameter=0}" />

													</Grid>
												</Grid>
											</Expander>

											<Label Grid.Row="3" Content="Mitarbeiter" />
                                            <ComboBox Grid.Row="3" Height="23" Margin="3" Grid.Column="1" SelectedItem="{Binding Path=EditAppointment.Tag}" Name="combobox_editEmployee" Grid.ColumnSpan="4" PreviewMouseDoubleClick="Combobox_newEmployee_OnPreviewMouseDoubleClick" />

											<Label Grid.Row="4" Content="Notiz" />
											<TextBox Grid.Column="1" Grid.Row="4" Name="EDIT_textboxNotice" Grid.ColumnSpan="4" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Height="45" Width="180" Margin="3" />

											<Grid Grid.Row="5" Grid.ColumnSpan="5">
												<Grid.ColumnDefinitions>
													<ColumnDefinition Width="*" />
													<ColumnDefinition Width="*" />
												</Grid.ColumnDefinitions>

												<Button HorizontalAlignment="Stretch" Margin="3" Name="button_editBooking" Click="button_editBooking_Click" Height="25">Buchung ändern</Button>
												<Button HorizontalAlignment="Stretch" Margin="3" Grid.Column="1" Name="button_deleteBooking" Click="button_deleteBooking_Click" Height="25">Buchung löschen</Button>

											</Grid>

										</Grid>
									</Border>
								</Expander>
							</Grid>

						</GroupBox>
					</Grid>
					<Border Grid.Row="2" Grid.ColumnSpan="3" Height="40" Margin="0,10,0,0" VerticalAlignment="Stretch" Background="#FF000000">
						<Border.OpacityMask>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#19000000" Offset="0" />
								<GradientStop Color="#33FFFFFF" Offset="1" />
							</LinearGradientBrush>
						</Border.OpacityMask>

					</Border>
					<StackPanel Grid.ColumnSpan="3" Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" Height="Auto" Margin="5,10,0,0" HorizontalAlignment="Right">
						<Button x:Name="btnSave" Content="Speichern" Margin="0,0,2,0" Command="ApplicationCommands.Save" Height="25" />
						<Button x:Name="btnClose" Content="Schließen" Margin="0,0,3,0" Command="ApplicationCommands.Close" Height="25" />
					</StackPanel>
				</Grid>
			</GroupBox>
		</uc:ShadowChrome>
	</Grid>
</localView:BeWoView>