<localView:BeWoView x:Class="BeWo.View.Detail.AdditionalServiceView"
                    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:localViewModel="clr-namespace:BeWo.ViewModel"
                    xmlns:localViewControls="clr-namespace:BeWo.View.Controls"
                    xmlns:localSearchView="clr-namespace:BeWo.View.Search"
                    xmlns:val="clr-namespace:BeWo.Validation"
                    xmlns:shared="clr-namespace:BS.Shared.DataContracts;assembly=BS.Shared"
                    xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
                    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
                    xmlns:ve="http://schemas.devexpress.com/winfx/2008/xaml/docking/visualelements"
                    xmlns:shared2="clr-namespace:BS.Shared;assembly=BS.Shared"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    xmlns:dxg="clr-namespace:DevExpress.Xpf.Grid;assembly=DevExpress.Xpf.Grid.v12.1"
                    xmlns:dxgt="http://schemas.devexpress.com/winfx/2008/xaml/grid/themekeys"
                    xmlns:grid="clr-namespace:DevExpress.Xpf.Grid;assembly=DevExpress.Xpf.Grid.v12.1.Core"
                    xmlns:converter="clr-namespace:BeWo.Converter"
                    Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Focusable="True" x:Name="_this">
    <localView:BeWoView.Resources>
        <Style TargetType="{x:Type Button}" x:Key="DockPanelMaximizeButtonStyle">
            <Style.Setters>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Button}">
                            <Grid x:Name="Button" Width="18" Height="18" ve:DockPane.HitTestType="MaximizeButton" Background="Transparent">
                                <Grid x:Name="hoveredState" Visibility="Collapsed">
                                    <Border Margin="2,2,0,0" Opacity="0.1" Background="#FF000000" CornerRadius="2,2,2,2" />
                                    <Border Margin="1,1,1,1" Background="#FF666666" CornerRadius="2,2,2,2" Padding="1,1,1,1">
                                        <Border CornerRadius="1,1,1,1" Padding="1,1,1,1">
                                            <Border.Background>
                                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                    <GradientStop Color="#FFD0E3FB" Offset="0" />
                                                    <GradientStop Color="#FFADD0F6" Offset="1" />
                                                    <GradientStop Color="#FFD5E6FA" Offset="0.5" />
                                                </LinearGradientBrush>
                                            </Border.Background>
                                            <Border CornerRadius="1,1,1,1">
                                                <Border.Background>
                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop Color="#FFD1E4FC" Offset="0" />
                                                        <GradientStop Color="#FFAED1F6" Offset="1" />
                                                        <GradientStop Color="#FFB5D0F1" Offset="0.5" />
                                                        <GradientStop Color="#FFA4C5ED" Offset="0.5" />
                                                    </LinearGradientBrush>
                                                </Border.Background>
                                            </Border>
                                        </Border>
                                    </Border>
                                </Grid>
                                <Grid x:Name="pressedState" Visibility="Collapsed">
                                    <Border Margin="2,2,1,0" Opacity="0.15" Background="#FFFFFFFF" CornerRadius="2,2,2,2" />
                                    <Border Margin="1,1,1,1" Background="#FF333333" CornerRadius="2,2,2,2" Padding="1,1,1,1">
                                        <Border Background="#FF555555" CornerRadius="1,1,1,1" Padding="1,1,1,1" />
                                    </Border>
                                </Grid>
                                <Border x:Name="glyph" Background="#00FFFEFE" Width="10" Height="10" HorizontalAlignment="Center" VerticalAlignment="Center">
                                    <Grid x:Name="grid" Width="10" Height="8">
                                        <Path Stretch="Fill"
						                                  Data="F1 M 1182,761L 1192,761L 1192,769L 1182,769L 1182,761 Z M 1183,764L 1183,768L 1191,768L 1191,764L 1183,764 Z "
						                                  HorizontalAlignment="Stretch"
						                                  Margin="0,0,0,0"
						                                  x:Name="path2"
						                                  VerticalAlignment="Stretch"
                                              Fill="#FF555555">
                                        </Path>
                                        <Path Stretch="Fill"
						                                  Fill="#FF555555"
						                                  Data="F1 M 1182,761L 1192,761L 1192,762L 1182,762L 1182,761 Z "
						                                  HorizontalAlignment="Stretch"
						                                  Margin="0,0,0,0"
						                                  x:Name="path3"
						                                  VerticalAlignment="Top"
						                                  Height="1" />
                                    </Grid>
                                </Border>
                            </Grid>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Visibility" TargetName="hoveredState" Value="Visible" />
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style.Setters>
        </Style>
        <Style TargetType="{x:Type Button}" x:Key="DockPanelRestoreButtonStyle">
            <Style.Setters>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Button}">
                            <Grid x:Name="Button" Width="18" Height="18" ve:DockPane.HitTestType="RestoreButton" Background="Transparent">
                                <Grid x:Name="hoveredState" Visibility="Collapsed">
                                    <Border Margin="2,2,0,0" Opacity="0.1" Background="#FF000000" CornerRadius="2,2,2,2" />
                                    <Border Margin="1,1,1,1" Background="#FF666666" CornerRadius="2,2,2,2" Padding="1,1,1,1">
                                        <Border CornerRadius="1,1,1,1" Padding="1,1,1,1">
                                            <Border.Background>
                                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                    <GradientStop Color="#FFD0E3FB" Offset="0" />
                                                    <GradientStop Color="#FFADD0F6" Offset="1" />
                                                    <GradientStop Color="#FFD5E6FA" Offset="0.5" />
                                                </LinearGradientBrush>
                                            </Border.Background>
                                            <Border CornerRadius="1,1,1,1">
                                                <Border.Background>
                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop Color="#FFD1E4FC" Offset="0" />
                                                        <GradientStop Color="#FFAED1F6" Offset="1" />
                                                        <GradientStop Color="#FFB5D0F1" Offset="0.5" />
                                                        <GradientStop Color="#FFA4C5ED" Offset="0.5" />
                                                    </LinearGradientBrush>
                                                </Border.Background>
                                            </Border>
                                        </Border>
                                    </Border>
                                </Grid>
                                <Grid x:Name="pressedState" Visibility="Collapsed">
                                    <Border Margin="2,2,1,0" Opacity="0.15" Background="#FFFFFFFF" CornerRadius="2,2,2,2" />
                                    <Border Margin="1,1,1,1" Background="#FF333333" CornerRadius="2,2,2,2" Padding="1,1,1,1">
                                        <Border Background="#FF555555" CornerRadius="1,1,1,1" Padding="1,1,1,1" />
                                    </Border>
                                </Grid>
                                <Border x:Name="glyph" Background="#00FFFEFE" Width="10" Height="10" HorizontalAlignment="Center" VerticalAlignment="Center">
                                    <Grid Width="10" Height="9" Margin="0,1,0,0">
                                        <Path Stretch="Fill"
                                            Fill="#FF555555"
						                    x:Name="path"
						                    Data="F1 M 1142,761.001L 1150,761.001L 1150,766L 1142,766L 1142,761.001 Z M 1143,763.001L 1143,765L 1149,765L 1149,763.001L 1143,763.001 Z "
						                    HorizontalAlignment="Stretch"
						                    Margin="2,0.001,0,3.999"
						                    VerticalAlignment="Stretch">
                                        </Path>
                                        <Path Stretch="Fill"
                                            Fill="#FF555555"
						                    x:Name="path3"
						                    Data="F1 M 1140,764.001L 1148,764L 1148,769L 1140,769.001L 1140,764.001 Z M 1141,766L 1141,768.001L 1147,768L 1147,766L 1141,766 Z "
						                    HorizontalAlignment="Stretch"
						                    Margin="0,3,2,1"
						                    VerticalAlignment="Stretch"
						                        >
                                        </Path>
                                        <Path Stretch="Fill"
						                    Fill="#FF555555"
						                    x:Name="path1"
						                    Data="F1 M 1142,761L 1150,761L 1150,762L 1142,762L 1142,761 Z "
						                    HorizontalAlignment="Stretch"
						                    Margin="2,0,0,0"
						                    VerticalAlignment="Top"
						                    Height="1" />
                                        <Path Stretch="Fill"
						                    x:Name="path6"
						                    Fill="#FF555555"
						                    Data="F1 M 1140,764L 1148,764L 1148,765L 1140,765L 1140,764 Z "
						                    HorizontalAlignment="Stretch"
						                    Margin="0,3,2,0"
						                    VerticalAlignment="Top"
						                    Height="1" />
                                    </Grid>
                                </Border>
                            </Grid>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="Visibility" TargetName="hoveredState" Value="Visible" />
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style.Setters>
        </Style>
        <ControlTemplate x:Key="ServiceRecordListBoxTemplate" TargetType="{x:Type ListBox}">
            <Border x:Name="Bd" SnapsToDevicePixels="True" Background="{TemplateBinding Background}"
                    BorderBrush="{TemplateBinding BorderBrush}">
                <ScrollViewer Focusable="False" Padding="{TemplateBinding Padding}" HorizontalScrollBarVisibility="Disabled">
                    <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                </ScrollViewer>
            </Border>
        </ControlTemplate>
        <Style x:Key="ServiceRecordListStyle" TargetType="{x:Type ListBox}">
            <Setter Property="Template" Value="{StaticResource ServiceRecordListBoxTemplate}" />
            <Setter Property="Padding" Value="2,0,2,2" />
        </Style>

        <Style x:Key="serviceRecordListBoxItemStyle" TargetType="{x:Type ListBoxItem}">
            <Setter Property="Background" Value="#00FFFFFF" />
            <Setter Property="HorizontalContentAlignment"
                    Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" />
            <Setter Property="VerticalContentAlignment"
                    Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" />
            <Setter Property="Padding" Value="2,0,0,0" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBoxItem}">
                        <Border x:Name="Bd" SnapsToDevicePixels="True" Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                                    Content="{TemplateBinding Content}"
                                    ContentStringFormat="{TemplateBinding ContentStringFormat}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}" />
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsEnabled" Value="False">
                                <Setter Property="Foreground"
                                        Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <ObjectDataProvider MethodName="GetValues"
                        ObjectType="{x:Type sys:Enum}"
                        x:Key="Monat">
            <ObjectDataProvider.MethodParameters>
                <x:Type TypeName="shared2:Monat" />
            </ObjectDataProvider.MethodParameters>
        </ObjectDataProvider>
        <Style x:Key="customCellStyle"
               BasedOn="{StaticResource {dxgt:GridRowThemeKey ResourceKey=CellStyle}}"
               TargetType="grid:CellContentPresenter">
            <Setter Property="Background" >
                <Setter.Value>
                    <MultiBinding Converter="{converter:CellColorConverter}">
                        <Binding />
                        <Binding Path="Column.Header" />
                    </MultiBinding>
                </Setter.Value>
            </Setter>
        </Style>
    </localView:BeWoView.Resources>
    <Grid x:Name="rootGrid">
        <uc:ShadowChrome>
            <GroupBox Style="{StaticResource MainContentGroupBoxStyle}">
                <GroupBox.Header>
                    <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" Margin="0,11,0,0">
                        <Image Source="..\..\Ressources\Icons\HistoryDisabled.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="Ergänzende Dienste" 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>
                  <Grid x:Name="detailContentGrid" Margin="0,3,0,0" Background="{StaticResource ObjectEditBackgroundBrush}">
                    <Grid.RowDefinitions>
                      <RowDefinition Height="Auto" />
                      <RowDefinition Height="*" />
                      <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Rectangle Fill="{DynamicResource ServiceRecordContentBrush}" Height="6" />
                    <Grid x:Name="root" Grid.Row="1" Margin="8,0,8,-8">
                      <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="250" />
                        <ColumnDefinition Width="*" />
                      </Grid.ColumnDefinitions>
                      <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                      </Grid.RowDefinitions>
                      <StackPanel Orientation="Horizontal" Margin="0,3,0,0" Grid.Column="1" Visibility="Collapsed" >
                      </StackPanel>
                      <Grid x:Name="customerSelectAndInfoGrid" Grid.Row="1" Grid.Column="1" Margin="0,3,0,0">
                        <Grid.ColumnDefinitions>
                          <ColumnDefinition Width="250" />
                          <ColumnDefinition Width="Auto" />
                          <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                      </Grid>
                      <Grid Grid.Row="1" Grid.RowSpan="2">
                        <GroupBox x:Name="groupBoxAdditionalService" 
                                  Header="Ergänzende Dienste" Padding="0" 
                                  Style="{DynamicResource ObjectEditGroupBox}" Margin="0,0,0,-3" Width="250">
                          <Grid x:Name="testgrid">
                            <Grid.ColumnDefinitions>
                              <ColumnDefinition Width="Auto" />
                              <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                              <RowDefinition Height="Auto" />
                              <RowDefinition Height="Auto" />
                              <RowDefinition Height="Auto" />
                              <RowDefinition Height="Auto" />
                              <RowDefinition Height="Auto" />
                              <RowDefinition Height="*" />
                              <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="Bereich: " Grid.Column="0" Grid.Row="0" />
                            <ComboBox SelectedIndex="0" x:Name="bereichscombobox" Margin="3,0,3,3" 
                                      Height="23" Grid.Column="1" Grid.Row="0" 
                                      ItemsSource="{Binding Path=AdditionalServices}" 
                                      SelectionChanged="bereichsComboboxChange" />
                            <Label Content="Angebot: " Grid.Column="0" Grid.Row="1" />
                            <ComboBox SelectedIndex="0" x:Name="angebotscombobox" Margin="3,0,3,3"
                                      Height="23" Grid.Column="1" Grid.Row="1"
                                      SelectionChanged="angebotsComboboxChange" />
                            <Label Content="Datum: " Grid.Column="0" Grid.Row="2" />
                            <dxe:DateEdit x:Name="datepicker_ADDate"
                                          EditValue="{val:ValidationBinding Mode=TwoWay, Path=AdditionalServiceBookings.NewVM.Date}"
                                          Height="23" Margin="3,0,3,3"
                                          Grid.Column="1" Grid.Row="2" />
                            <Label x:Name="StartZeitLabel" Grid.Column="0" Grid.Row="3" Content="Startzeit" />
                            <Grid Grid.Row="3" Grid.Column="1">
                              <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="60" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="60" />
                              </Grid.ColumnDefinitions>
                              <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                              </Grid.RowDefinitions>
                              <dxe:TextEdit MaskType="RegEx" Mask="(0?\d|1\d|2[0-3]):[0-5]\d" ShowError="False" MaskShowPlaceHolders="True"  
                                            MaskUseAsDisplayFormat="True" InvalidValueBehavior="AllowLeaveEditor"
                                            x:Name="ADstartTime"
                                            EditValue="{Binding Mode=TwoWay, Path=AdditionalServiceBookings.NewVM.StartTimeEditString, UpdateSourceTrigger=PropertyChanged}"
                                            Height="23"
                                            Margin="3,0,3,3" />
                              <Label Grid.Column="1" Content="Endzeit" />
                              <dxe:TextEdit MaskType="RegEx" Mask="(0?\d|1\d|2[0-3]):[0-5]\d" ShowError="False" MaskShowPlaceHolders="True" 
                                            MaskUseAsDisplayFormat="True" InvalidValueBehavior="AllowLeaveEditor"
                                            Grid.Column="2" x:Name="ADendTime"
                                            EditValue="{Binding Mode=TwoWay, Path=AdditionalServiceBookings.NewVM.EndTimeEditString, UpdateSourceTrigger=PropertyChanged}"
                                            Height="23"
                                            Margin="3,0,3,3" />
                              <Label Content="Dauer (min)" Grid.Column="1" Grid.Row="1" />
                              <dxe:SpinEdit MinValue="0" Increment="5" IsFloatValue="False" AllowNullInput="False" x:Name="AD_duration"
                                            Grid.Column="2" Grid.Row="1"
                                            EditValue="{Binding Mode=TwoWay, Path=AdditionalServiceBookings.NewVM.RoundedDuration, Converter={StaticResource Int2DecimalConverter}, UpdateSourceTrigger=PropertyChanged}"
                                            Height="23" Margin="3,0,3,3" />
                            </Grid>
                            <Grid x:Name="GroupSelectionGrid" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="5" Margin="0,10,0,0">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                <localViewControls:MultiEmployeeSelectionControl Margin="5,3,0,0" Grid.Row="0"
                                                                                    x:Name="multiEmployeeControlAddServ" MinHeight="100" MaxHeight="200" VerticalAlignment="Top"
                                                                                    Visibility="Visible" />
                                <localViewControls:MultiAddServGroupOfPeopleSelectionControl x:Name="multiAddServGroupOfPeopleSelectionControl"
                                                                                                MinHeight="100" VerticalAlignment="Top"
                                                                                                HorizontalContentAlignment="Stretch"
                                                                                                Grid.Row="1" Visibility="Visible" PropertyChanged="MultiAddServGroupOfPeopleSelectionControl_OnPropertyChanged" />
                            </Grid>
                            <Button x:Name="button_ADadd" Click="button_ADadd_Click" FontWeight="Normal"
                                      Grid.Column="1" Grid.Row="6" Content="Buchen" Height="23"
                                      BorderThickness="3"  Margin="4" HorizontalAlignment="Right" />
                          </Grid>
                        </GroupBox>
                      </Grid>
                            <Grid x:Name="KalenderGrid" Grid.Row="2" Grid.Column="1" Margin="10,10,0,0">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition Height="Auto"/>
                                    </Grid.RowDefinitions>
                                    <Grid Grid.Row="0">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>
                                        <Button x:Name="FLSAnlegenBtn" Content="FLS anlegen" Grid.Column="0" Click="FLSAnlegenBtn_OnClick" />
                                        <Label x:Name="MonatsLabel" Content="Monat" Grid.Column="1"/>
                                        <ComboBox x:Name="MonatsCombobox" Grid.Column="2" MinWidth="90" ItemsSource="{Binding Source={StaticResource Monat}}" SelectedItem="{Binding Path=SelectedMonth}"/>
                                        <Label x:Name="JahresLabel" Content="Jahr" Grid.Column="3"/>
                                        <ComboBox x:Name="JahresCombobox" Grid.Column="4" MinWidth="75" ItemsSource="{Binding Path=Years}" SelectedItem="{Binding Path=SelectedYear}"/>
                                    </Grid>
                                    <Grid Grid.Row="1" x:Name="P" Margin="0,5,0,0">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="*"/>
                                        </Grid.RowDefinitions>
                                        <Grid Grid.Row="0" VerticalAlignment="Top" Grid.Column="2" x:Name="FLSInfoGrid" Visibility="Collapsed">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="*" />
                                            </Grid.ColumnDefinitions>
                                            <localViewControls:SingleSupportConceptSelectionControl x:Name="supportConceptSelectionControl" Width="250" Margin="0,0,10,0"
                                                                                                    ItemSelected="supportConceptSelectionControl_ItemSelected" Height="62" VerticalAlignment="Top"
                                                                                                    HorizontalContentAlignment="Stretch" />
                                            <TextBlock Grid.Column="1" Text="{Binding Path=FLSInformationStringLabels,Mode=OneWay}" 
                                                       Foreground="{DynamicResource BigInfoTextBrush}" FontSize="14" />
                                            <TextBlock Margin="10 0 0 0" Grid.Column="2" Text="{Binding Path=FLSInformationStringContent,Mode=OneWay}" 
                                                       Foreground="{DynamicResource BigInfoTextBrush}" FontSize="14" />
                                            <StackPanel Grid.Column="3" Orientation="Horizontal" Visibility="{Binding Path=IsCustomerWarningActive, Converter={StaticResource BoolVisibilityConverter}}" VerticalAlignment="Top" Margin="8,-3,0,0">
                                                <Button Content="I"  HorizontalAlignment="Left" Style="{DynamicResource WarningButton}" >
                                                    <Button.ToolTip>
                                                        <TextBlock Text="{Binding Path=CustomerWarning}" />
                                                    </Button.ToolTip>
                                                </Button>
                                                <TextBlock Margin="5 3 0 0" Grid.Column="1" Text="Der Klient ist in dieser Woche abwesended" Foreground="#B80000" FontSize="14">
                                                    <TextBlock.ToolTip>
                                                        <TextBlock Text="{Binding Path=CustomerWarning}" />
                                                    </TextBlock.ToolTip>
                                                </TextBlock>
                                            </StackPanel>
                                        </Grid>
                                        <Grid Grid.Row="1" x:Name="FLSGrid" Visibility="Collapsed">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="*" />
                                                <ColumnDefinition Width="Auto" />
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="*" />
                                            </Grid.RowDefinitions>
                                            <GroupBox x:Name="groupBoxNeueLeistung" Header="Neue Leistung hinzufügen" Padding="0,0,0,0"
                                                      Style="{DynamicResource ObjectEditGroupBox}" Margin="0,0,0,-3" Grid.Column="1">
                                                <Grid x:Name="gridNeueLeistung">
                                                    <Grid.ColumnDefinitions>
                                                        <ColumnDefinition Width="Auto" />
                                                        <ColumnDefinition Width="*" />
                                                    </Grid.ColumnDefinitions>
                                                    <Grid.RowDefinitions>
                                                        <RowDefinition Height="*" />
                                                    </Grid.RowDefinitions>
                                                    <Grid x:Name="newObjectInfoGrid">
                                                        <Grid.ColumnDefinitions>
                                                            <ColumnDefinition Width="*" />
                                                        </Grid.ColumnDefinitions>
                                                        <Grid.RowDefinitions>
                                                            <RowDefinition Height="*" />
                                                            <RowDefinition Height="Auto" />
                                                        </Grid.RowDefinitions>
                                                        <Grid>
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="250" />
                                                            </Grid.ColumnDefinitions>
                                                            <Grid.RowDefinitions>
                                                                <RowDefinition Height="Auto" />
                                                                <RowDefinition Height="*" />
                                                            </Grid.RowDefinitions>
                                                            <Grid Grid.Column="0" Grid.Row="1">
                                                                <Grid.ColumnDefinitions>
                                                                    <ColumnDefinition Width="Auto" />
                                                                    <ColumnDefinition Width="*" />
                                                                </Grid.ColumnDefinitions>
                                                                <Grid.RowDefinitions>
                                                                    <RowDefinition Height="Auto" />
                                                                    <RowDefinition Height="Auto" />
                                                                    <RowDefinition Height="Auto" />
                                                                    <RowDefinition Height="Auto" />
                                                                    <RowDefinition Height="Auto" />
                                                                    <RowDefinition Height="Auto" />
                                                                    <RowDefinition Height="Auto" />
                                                                    <RowDefinition Height="Auto" />
                                                                    <RowDefinition Height="*" />
                                                                </Grid.RowDefinitions>
                                                                <Label x:Name="lblEmployee" Grid.Column="0" Grid.Row="0" Content="Mitarbeiter" />
                                                                <uc:PopUpEdit IsReadOnly="True" x:Name="popupedit_employee"
                                                                              DeleteButtonVisibility="Collapsed"
                                                                              PopUpClick="popupedit_employee_PopUpClick"
                                                                              HorizontalAlignment="Stretch"
                                                                              HorizontalContentAlignment="Stretch" Height="23" Grid.Column="1"
                                                                              Grid.ColumnSpan="1" Grid.Row="0" Margin="3,0,3,3" />
                                                                <StackPanel Margin="0" Grid.Column="0" Grid.Row="1" x:Name="panelGoalLabel" Visibility="Collapsed">
                                                                    <Label Content="Ziele" Visibility="{Binding Path=PrototypeVM.IsGoalTreeVisible, Converter={StaticResource BoolVisibilityConverter}}" />
                                                                </StackPanel>
                                                                <StackPanel Margin="0" Grid.Column="1" Grid.Row="1" x:Name="panelGoalTree" Visibility="Collapsed">
                                                                    <TreeView x:Name="treeview_Goals" Margin="3,0,3,3" ItemsSource="{Binding Path=PrototypeVM.GoalTree}"
                                                                              Visibility="{Binding Path=PrototypeVM.IsGoalTreeVisible, Converter={StaticResource BoolVisibilityConverter}}"
                                                                              ItemContainerStyle="{DynamicResource goal_treeitemstyle}" ItemTemplate="{DynamicResource goal_treeitemtemplate}"
                                                                              Grid.RowSpan="1" MinHeight="24" MaxHeight="100" HorizontalContentAlignment="Left">
                                                                        <TreeView.Resources>
                                                                            <Style x:Key="goal_treeitemstyle" TargetType="TreeViewItem">
                                                                                <Setter Property="IsExpanded" Value="{Binding Path=IsExpanded, Mode=TwoWay}" />
                                                                                <Setter Property="HorizontalContentAlignment" Value="Left"/>
                                                                                <Setter Property="Template">
                                                                                    <Setter.Value>
                                                                                        <ControlTemplate TargetType="TreeViewItem">
                                                                                            <Grid>
                                                                                                <Grid.ColumnDefinitions>
                                                                                                    <ColumnDefinition Width="Auto" />
                                                                                                </Grid.ColumnDefinitions>
                                                                                                <Grid.RowDefinitions>
                                                                                                    <RowDefinition Height="Auto"/>
                                                                                                </Grid.RowDefinitions>
                                                                                                <Expander Name="ExpanderParent" IsExpanded="True">
                                                                                                    <Expander.Header>
                                                                                                        <ContentPresenter ContentSource="Header"
                                                                                                                          HorizontalAlignment="Center"
                                                                                                                          VerticalAlignment="Center"
                                                                                                                          Visibility="Visible"/>
                                                                                                    </Expander.Header>
                                                                                                    <ItemsPresenter Margin="8,0,0,0"/>
                                                                                                </Expander>
                                                                                                <ContentPresenter Name="CntPresChildren" ContentSource="Header"
                                                                                                                  HorizontalAlignment="Center"
                                                                                                                  VerticalAlignment="Center"
                                                                                                                  Visibility="Collapsed"/>
                                                                                            </Grid>
                                                                                            <ControlTemplate.Triggers>
                                                                                                     <!-- If the TreeViewItem has child items,
                                                                                                       show it in an Expander.  Otherwise
                                                                                                       hide the Expander and show the hidden
                                                                                                       ContentPresenter. -->
                                                                                                <Trigger Property="TreeViewItem.HasItems" Value="false">
                                                                                                    <Setter TargetName="ExpanderParent"
                                                                                                            Property="Visibility"
                                                                                                            Value="Collapsed" />
                                                                                                    <Setter TargetName="CntPresChildren"
                                                                                                            Property="Visibility"
                                                                                                            Value="Visible" />
                                                                                                </Trigger>
                                                                                            </ControlTemplate.Triggers>
                                                                                        </ControlTemplate>
                                                                                    </Setter.Value>
                                                                                </Setter>
                                                                            </Style>
                                                                            <HierarchicalDataTemplate x:Key="goal_treeitemtemplate" DataType="{x:Type shared:SupportConceptGoalDC}" ItemsSource="{Binding Path=Children}" >
                                                                                <Grid HorizontalAlignment="Left">
                                                                                    <Grid.ColumnDefinitions>
                                                                                        <ColumnDefinition Width="Auto" />
                                                                                        <ColumnDefinition Width="Auto" />
                                                                                    </Grid.ColumnDefinitions>
                                                                                    <CheckBox x:Name="Bd" Tag="{Binding}" IsChecked="{Binding Path=IsChecked}"
                                                                                              Visibility="{Binding Path=HasParent, Converter={StaticResource BoolVisibilityConverter}}"
                                                                                              Grid.Column="0" Margin="3 2" VerticalAlignment="Center" />
                                                                                    <TextBlock x:Name="BdText" Tag="{Binding}" Grid.Column="1" Margin="3 2"
                                                                                               Text="{Binding Path=Name}" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="Black" TextAlignment="Left"/>
                                                                                </Grid>
                                                                            </HierarchicalDataTemplate>
                                                                        </TreeView.Resources>
                                                                    </TreeView>
                                                                </StackPanel>
                                                                <Label Grid.Column="0" Grid.Row="2" Content="Kategorie" />
                                                                <ComboBox Grid.Column="1" Grid.Row="2"
                                                                          SelectedItem="{val:ValidationBinding Path=PrototypeVM.Category}"
                                                                          ItemsSource="{Binding Path=PrototypeVM.Category2Services.Keys}"
                                                                          SelectedIndex="0" x:Name="combobox_category" Margin="3,0,3,3"
                                                                          Height="23" />
                                                                <Label Grid.Column="0" Grid.Row="3" Content="Leistung" />
                                                                <ComboBox Grid.Column="1" Grid.Row="3" SelectedItem="{val:ValidationBinding Path=PrototypeVM.ServiceDescription}"
                                                                          ItemsSource="{Binding Path=PrototypeVM.PossibleServiceDescriptions}"
                                                                          SelectedIndex="0" x:Name="combobox_services" Margin="3,0,3,3"
                                                                          Height="23" />
                                                                <Label Grid.Column="0" Grid.Row="4" Content="Datum" />
                                                                <dxe:DateEdit Grid.Column="1" Grid.Row="4" x:Name="datepicker_newDate"
                                                                              EditValue="{val:ValidationBinding Mode=TwoWay, Path=PrototypeVM.Date}"
                                                                              Height="23" Margin="3,0,3,3" />
                                                                <Label Grid.Column="0" Grid.Row="5" Content="Startzeit" />
                                                                <Grid Grid.Column="1" Grid.Row="5">
                                                                    <Grid.ColumnDefinitions>
                                                                        <ColumnDefinition Width="60" />
                                                                        <ColumnDefinition Width="*" />
                                                                        <ColumnDefinition Width="60" />
                                                                    </Grid.ColumnDefinitions>
                                                                    <dxe:TextEdit MaskType="RegEx" Mask="(0?\d|1\d|2[0-3]):[0-5]\d" ShowError="False" MaskShowPlaceHolders="True"  MaskUseAsDisplayFormat="True" InvalidValueBehavior="AllowLeaveEditor"
                                                                                  EditValue="{Binding Mode=TwoWay, Path=PrototypeVM.StartTimeEditString, UpdateSourceTrigger=PropertyChanged}"
                                                                                  x:Name="startTime" Height="23" Margin="3,0,3,3"/>
                                                                    <Label Grid.Column="1" Content="Endzeit" />
                                                                    <dxe:TextEdit MaskType="RegEx" Mask="(0?\d|1\d|2[0-3]):[0-5]\d" ShowError="False" MaskShowPlaceHolders="True"  MaskUseAsDisplayFormat="True" InvalidValueBehavior="AllowLeaveEditor"
                                                                                  EditValue="{Binding Mode=TwoWay, Path=PrototypeVM.EndTimeEditString, UpdateSourceTrigger=PropertyChanged}"
                                                                                  Grid.Column="2" x:Name="endTime" Height="23" Margin="3,0,3,3" />
                                                                </Grid>
                                                                <Grid Grid.Column="1" Grid.Row="6">
                                                                    <Grid.ColumnDefinitions>
                                                                        <ColumnDefinition Width="60" />
                                                                        <ColumnDefinition Width="*" />
                                                                        <ColumnDefinition Width="60" />
                                                                    </Grid.ColumnDefinitions>
                                                                    <Label Content="Dauer (min)" Grid.Column="1" />
                                                                    <dxe:SpinEdit MinValue="0" Increment="5" IsFloatValue="False" AllowNullInput="False" x:Name="numerictb_duration"
                                                                                  EditValue="{Binding Path=PrototypeVM.Duration, Mode=TwoWay, Converter={StaticResource Int2DecimalConverter}, UpdateSourceTrigger=PropertyChanged}"
                                                                                  Grid.Column="2" Height="23" Margin="3,0,3,3"/>
                                                                </Grid>
                                                                <StackPanel Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="3" MaxWidth="320" HorizontalAlignment="Left" Visibility="Collapsed" >
                                                                    <Label Content="{Binding Path=PrototypeVM.Date, Converter={StaticResource Date2CalendarWeekStringConverter}}" />
                                                                    <WrapPanel x:Name="wrapPanel_days" />
                                                                </StackPanel>
                                                                <Label Grid.Column="0" Grid.Row="7" VerticalAlignment="Top" Content="Dokumentation" HorizontalAlignment="Left" Grid.ColumnSpan="2" />
                                                                <TextBox Grid.Column="0" Grid.Row="8" Grid.RowSpan="1"
                                                                         Text="{val:ValidationBinding Path=PrototypeVM.Notice, UpdateSourceTrigger=PropertyChanged}"
                                                                         VerticalAlignment="Stretch" Grid.ColumnSpan="2"
                                                                         AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
                                                                         HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap"
                                                                         AutoWordSelection="True" />
                                                            </Grid>
                                                        </Grid>
                                                        <Grid Grid.Row="1" Margin="0,0,0,0">
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="*" />
                                                                <ColumnDefinition Width="Auto" />
                                                            </Grid.ColumnDefinitions>
                                                            <TextBlock TextWrapping="Wrap" VerticalAlignment="Center" Text="{Binding Path=Information}" Foreground="#FF000000" Margin="0,0,3,0" />
                                                            <Button x:Name="button_add" Click="button_add_Click" FontWeight="Normal" Grid.Column="1" Content="Speichern" Height="23" BorderThickness="3,3,3,3" Margin="4" />
                                                        </Grid>
                                                    </Grid>
                                                </Grid>
                                            </GroupBox>
                                            <Grid x:Name="serviceRecordListContent"  Margin="0,0,0,25" Grid.Column="2" Grid.Row="0" MinWidth="300"  >
                                                <ListBox x:Name="srListBox" ScrollViewer.CanContentScroll="True" IsSynchronizedWithCurrentItem="True"
                                                         AlternationCount="-1" Background="{x:Null}" MouseDoubleClick="serviceRecordListBox_MouseDoubleClick"
                                                         ItemTemplate="{DynamicResource serviceRecordListBoxItemTemplate}" Style="{DynamicResource ServiceRecordListStyle}"
                                                         HorizontalContentAlignment="Stretch" ItemContainerStyle="{DynamicResource serviceRecordListBoxItemStyle}" TabIndex="1">
                                                    <ListBox.Resources>
                                                        <DataTemplate x:Key="serviceRecordListBoxItemTemplate" DataType="{x:Type localViewModel:ServiceRecordVM}">
                                                            <Grid x:Name="template" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                                                <Border x:Name="ItemBorder" CornerRadius="4,4,4,4" Width="Auto" Height="Auto" Padding="6" 
                                                                        Margin="0,0,0,3" Background="{Binding Path=BackgroundBrush}" BorderThickness="1,1,1,1" BorderBrush="#FF7E7E7E">
                                                                    <Grid TextBlock.Foreground="{Binding Path=TextBlock.Foreground, RelativeSource={RelativeSource TemplatedParent}}">
                                                                        <Grid.ColumnDefinitions>
                                                                            <ColumnDefinition Width="Auto" />
                                                                            <ColumnDefinition Width="12" />
                                                                            <ColumnDefinition Width="Auto" />
                                                                            <ColumnDefinition Width="12" />
                                                                            <ColumnDefinition Width="*" />
                                                                        </Grid.ColumnDefinitions>
                                                                        <Grid.RowDefinitions>
                                                                            <RowDefinition Height="17" />
                                                                            <RowDefinition Height="14" />
                                                                            <RowDefinition Height="14" />
                                                                            <RowDefinition Height="14" />
                                                                            <RowDefinition Height="14" />
                                                                            <RowDefinition Height="14" />
                                                                            <RowDefinition Height="24" />
                                                                        </Grid.RowDefinitions>
                                                                        <TextBlock Grid.Column="0" Grid.Row="1" Text="Minuten (gerundet):" />
                                                                        <TextBlock Grid.Column="0" Grid.Row="2" Text="Leistungskategorie:" />
                                                                        <TextBlock Grid.Column="0" Grid.Row="3" Text="Leistung:" />
                                                                        <TextBlock Grid.Column="0" Grid.Row="4" Text="Angelegt von:" />
                                                                        <TextBlock Grid.Column="0" Grid.Row="5" Text="Angelegt am:" />
                                                                        <TextBlock Grid.Column="0" Grid.Row="0" Text="{Binding Path=LongDateString}" Grid.ColumnSpan="5" FontWeight="Bold" FontSize="13" Foreground="#FF494949" />
                                                                        <TextBlock Grid.Column="2" Grid.Row="1" Text="{Binding Path=DurationAndRoundedDuration}" FontWeight="Bold" Background="{x:Null}" Foreground="#FF4E7BC4" />
                                                                        <TextBlock Grid.Column="2" Grid.Row="2" Text="{Binding Path=Category}" />
                                                                        <TextBlock Grid.Column="2" Grid.Row="3" Text="{Binding Path=ServiceDescription}" />
                                                                        <TextBlock Grid.Column="2" Grid.Row="4" Text="{Binding Path=EmployeeName}" />
                                                                        <TextBlock Grid.Column="2" Grid.Row="5" Text="{Binding Path=InsertedOn}" />
                                                                        <TextBox Grid.Column="4" Grid.Row="1" Grid.RowSpan="6" HorizontalAlignment="Stretch" Text="{Binding Path=Notice}"
                                                                                 HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Auto" Margin="0,0,0,15"
                                                                                 BorderThickness="0" BorderBrush="{x:Null}" Background="{x:Null}" SnapsToDevicePixels="True"
                                                                                 MaxHeight="200" TextWrapping="Wrap" AutoWordSelection="True" IsReadOnly="True" GotFocus="TextBox_GotFocus" Tag="{Binding}"
                                                                                 IsEnabled="True" Focusable="True" />
                                                                        <StackPanel Orientation="Horizontal" Grid.Column="2" Grid.ColumnSpan="3" Grid.Row="6" Margin="0,7,0,0">
                                                                            <TextBlock Text="Ziele:" Visibility="{Binding Path=HasGoals, Converter={StaticResource BoolVisibilityConverter}}"/>
                                                                            <TextBlock Text="{Binding Path=GoalString}" Margin="3,0,3,0" ToolTip="{Binding Path=GoalString}"/>
                                                                        </StackPanel>

                                                                        <Button x:Name="btnEdit" Grid.Column="0" Grid.Row="6" Width="32"
                                                                                Height="22" HorizontalAlignment="Left" Margin="0,0,0,0"
                                                                                BorderThickness="1,1,1,1" Padding="1,1,1,1"
                                                                                Click="btnEdit_Click" Style="{DynamicResource GlassButton}"
                                                                                Tag="{Binding}" Visibility="{Binding Path=EditAllowed, Converter={StaticResource BoolVisibilityConverter}}">
                                                                            <Image Source="..\..\Ressources\Icons\Symbol Edit.png" Stretch="Uniform" Margin="1,1,1,1" />
                                                                        </Button>
                                                                        <Button x:Name="btnDelete" Grid.Column="0" Grid.Row="6" Width="32"
                                                                                Height="22" HorizontalAlignment="Left" Margin="35,0,0,0"
                                                                                Padding="1,1,1,1" BorderThickness="1,1,1,1"
                                                                                Click="btnDelete_Click" Style="{DynamicResource GlassButton}"
                                                                                Tag="{Binding}" Visibility="{Binding Path=EditAllowed, Converter={StaticResource BoolVisibilityConverter}}">
                                                                            <Image Source="..\..\Ressources\Icons\Symbol Delete.png" Stretch="Uniform" Margin="1,1,1,1" />
                                                                        </Button>
                                                                    </Grid>
                                                                </Border>
                                                            </Grid>
                                                            <DataTemplate.Triggers>
                                                                <Trigger Property="IsMouseOver" Value="True">
                                                                    <Setter Property="Background" TargetName="ItemBorder" Value="{Binding Path=MouseOverBackgroundBrush}" />
                                                                </Trigger>
                                                                <DataTrigger Binding="{Binding Path=IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}, Mode=FindAncestor}}" Value="True">
                                                                    <Setter Property="Background" TargetName="ItemBorder" Value="{Binding Path=SelectedBackgroundBrush}" />
                                                                </DataTrigger>
                                                            </DataTemplate.Triggers>
                                                        </DataTemplate>
                                                    </ListBox.Resources>
                                                </ListBox>
                                            </Grid>
                                            <TextBlock Grid.Column="1" x:Name="txtServiceListCount"
                                                       Text="{Binding Path=RecordCountInformationString}" VerticalAlignment="Bottom"
                                                       Margin="5,0,5,3" Foreground="#FF2B508B" HorizontalAlignment="Left" FontSize="14" />
                                            <StackPanel x:Name="stackPanelInfoText" Orientation="Horizontal" Grid.Column="2" VerticalAlignment="Bottom" HorizontalAlignment="Right">
                                                <TextBlock x:Name="textblock_link_pdfexport" Margin="5,0,5,3" FontSize="14">
                                                    <Hyperlink x:Name="linkPdfExport" TargetName="_NewWindow" Foreground="#FF2B508B" RequestNavigate="LinkPdfExport_OnRequestNavigate" >
                                                        <Run Text="Drucken" />
                                                    </Hyperlink>
                                                </TextBlock>
                                                <TextBlock x:Name="textblock_link" Margin="5,0,5,3" FontSize="14">
                                                    <Hyperlink x:Name="linkExcelExport" TargetName="newWindow" Foreground="#FF2B508B" RequestNavigate="linkExcelExport_RequestNavigate">
                                                      <Run Text="Excel Export" />
                                                    </Hyperlink>
                                                </TextBlock>
                                            </StackPanel>
                                            <Grid x:Name="punktebogenRootGrid" Grid.Column="2" >
                                                <Border Width="200" BorderBrush="Green"/>
                                            </Grid>
                                        </Grid>
                                        <dxg:GridControl Grid.Row="1" x:Name="teilnahmeGrid" ItemsSource="{Binding TeilnehmerListe}">
                                            <dxg:GridControl.Resources>
                                                <Style x:Key="customCellStyle"
                                                       BasedOn="{StaticResource {dxgt:GridRowThemeKey ResourceKey=CellStyle}}"
                                                       TargetType="grid:CellContentPresenter">
                                                    <Setter Property="Background">
                                                        <Setter.Value>
                                                            <MultiBinding Converter="{converter:CellColorConverter}">
                                                                <Binding />
                                                                <Binding Path="Column.Header" />
                                                            </MultiBinding>
                                                        </Setter.Value>
                                                    </Setter>
                                                </Style>
                                            </dxg:GridControl.Resources>
                                            <dxg:GridControl.Columns>
                                                <dxg:GridColumn FieldName="Customer.LastNameFirstName" Header="Klient" AllowEditing="False"/>
                                                <dxg:GridColumn x:Name="t0" FieldName="t0" Header="1." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t1" FieldName="t1" Header="2." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t2" FieldName="t2" Header="3." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t3" FieldName="t3" Header="4." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t4" FieldName="t4" Header="5." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t5" FieldName="t5" Header="6." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t6" FieldName="t6" Header="7." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t7" FieldName="t7" Header="8." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t8" FieldName="t8" Header="9." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t9" FieldName="t9" Header="10." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t10" FieldName="t10" Header="11." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t11" FieldName="t11" Header="12." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t12" FieldName="t12" Header="13." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t13" FieldName="t13" Header="14." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t14" FieldName="t14" Header="15." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t15" FieldName="t15" Header="16." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t16" FieldName="t16" Header="17." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t17" FieldName="t17" Header="18." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t18" FieldName="t18" Header="19." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t19" FieldName="t19" Header="20." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t20" FieldName="t20" Header="21." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t21" FieldName="t21" Header="22." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t22" FieldName="t22" Header="23." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t23" FieldName="t23" Header="24." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t24" FieldName="t24" Header="25." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t25" FieldName="t25" Header="26." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t26" FieldName="t26" Header="27." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t27" FieldName="t27" Header="28." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t28" FieldName="t28" Header="29." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t29" FieldName="t29" Header="30." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                                <dxg:GridColumn x:Name="t30" FieldName="t30" Header="31." Width="27" CellStyle="{StaticResource customCellStyle}" EditSettings="{dxe:CheckSettings}"/>
                                            </dxg:GridControl.Columns>
                                            <dxg:GridControl.View>
                                                <dxg:TableView ShowGroupPanel="False" ShowGroupedColumns="False" ShowTotalSummary="False" NavigationStyle="Cell" ShownEditor="pg_ShownEditor" PreviewMouseDoubleClick="gridView1_DoubleClick" Tag="{Binding SelectedBookings}" />
                                            </dxg:GridControl.View>
                                        </dxg:GridControl>
                                    </Grid>
                                    <Grid Grid.Row="2"><Button x:Name="saveBtn" Content="Speichern" HorizontalAlignment="Right" Click="SaveBookingChanges" Margin="4,4,0,4"/></Grid>
                                </Grid>
                            </Grid>
                      
                    </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.Row="2" Orientation="Horizontal" VerticalAlignment="Center" Height="Auto"
                            Margin="5,10,0,0" HorizontalAlignment="Right">
                      <Button x:Name="btnClose" Content="Schließen" Margin="0,0,3,0"
                              Command="ApplicationCommands.Close" Height="25" />
                    </StackPanel>
                  </Grid>
                    <Popup Margin="10" x:Name="popup_employee" StaysOpen="False" Placement="MousePoint" Width="400"
                            Height="400">
                        <localSearchView:EmployeeSearchView ItemSelected="EmployeeSearchView_CustomerSelected" />
                    </Popup>
                </Grid>
            </GroupBox>
        </uc:ShadowChrome>
        <Border x:Name="popup_content" />
    </Grid>
</localView:BeWoView>