<local:AdministrationWindow
        x:Class="Elwig.Windows.DeliveryAdminWindow"
        AutomationProperties.AutomationId="DeliveryAdminWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Elwig.Windows"
        xmlns:vm="clr-namespace:Elwig.ViewModels"
        xmlns:ctrl="clr-namespace:Elwig.Controls"
        Title="{Binding Title}" Height="720" Width="1150" MinHeight="720" MinWidth="1000"
        Loaded="Window_Loaded">
    <Window.DataContext>
        <vm:DeliveryAdminViewModel/>
    </Window.DataContext>
    <Window.Resources>
        <Style TargetType="Label">
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="Padding" Value="2,4,2,4"/>
            <Setter Property="Height" Value="25"/>
        </Style>
        <Style TargetType="TextBox">
            <Setter Property="HorizontalAlignment" Value="Stretch"/>
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="FontSize" Value="14"/>
            <Setter Property="Padding" Value="2"/>
            <Setter Property="Height" Value="25"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
        </Style>
        <Style TargetType="ctrl:UnitTextBox">
            <Setter Property="HorizontalAlignment" Value="Stretch"/>
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="FontSize" Value="14"/>
            <Setter Property="Padding" Value="2"/>
            <Setter Property="Height" Value="25"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
        </Style>
        <Style TargetType="ComboBox">
            <Setter Property="Height" Value="25"/>
            <Setter Property="FontSize" Value="14"/>
            <Setter Property="HorizontalAlignment" Value="Stretch"/>
            <Setter Property="VerticalAlignment" Value="Top"/>
        </Style>
        <Style TargetType="ctrl:CheckComboBox">
            <Setter Property="Height" Value="25"/>
            <Setter Property="FontSize" Value="14"/>
            <Setter Property="HorizontalAlignment" Value="Stretch"/>
            <Setter Property="VerticalAlignment" Value="Top"/>
        </Style>
        <Style TargetType="Button">
            <Setter Property="FontSize" Value="14"/>
            <Setter Property="Padding" Value="9,3"/>
            <Setter Property="Height" Value="27"/>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="19"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="24"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*" MinWidth="400"/>
            <ColumnDefinition Width="5"/>
            <ColumnDefinition Width="2*" MinWidth="560"/>
        </Grid.ColumnDefinitions>

        <Menu Grid.ColumnSpan="3" BorderThickness="0,0,0,1" BorderBrush="LightGray" Background="White">
            <MenuItem Header="Lieferschein">
                <MenuItem x:Name="Menu_DeliveryNote_Show" Header="...anzeigen (PDF)" IsEnabled="False"
                          Click="Menu_DeliveryNote_Show_Click" InputGestureText="Strg+P">
                    <MenuItem.Icon>
                        <TextBlock FontFamily="Segoe MDL2 Assets" FontSize="16" Text="&#xE8FF;"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem x:Name="Menu_DeliveryNote_SavePdf" Header="...speichern... (PDF)" IsEnabled="False"
                          Click="Menu_DeliveryNote_SavePdf_Click">
                    <MenuItem.Icon>
                        <TextBlock FontFamily="Segoe MDL2 Assets" FontSize="16" Text="&#xEA90;"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem x:Name="Menu_DeliveryNote_Print" Header="...drucken" IsEnabled="False"
                          Click="Menu_DeliveryNote_Print_Click" InputGestureText="Strg+Shift+P">
                    <MenuItem.Icon>
                        <TextBlock FontFamily="Segoe MDL2 Assets" FontSize="16" Text="&#xE749;"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem x:Name="Menu_DeliveryNote_Email" Header="...per E-Mail schicken" IsEnabled="False"
                          Click="Menu_DeliveryNote_Email_Click">
                    <MenuItem.Icon>
                        <TextBlock FontFamily="Segoe MDL2 Assets" FontSize="16" Text="&#xE89C;"/>
                    </MenuItem.Icon>
                </MenuItem>
            </MenuItem>
            <MenuItem Header="Lieferjournal">
                <MenuItem x:Name="Menu_DeliveryJournal_SaveFilters" Header="...aus Filtern speichern... (Excel)"
                          Click="Menu_DeliveryJournal_SaveFilters_Click" InputGestureText="Strg+L"/>
                <MenuItem x:Name="Menu_DeliveryJournal_ShowFilters" Header="...aus Filtern anzeigen (PDF)"
                          Click="Menu_DeliveryJournal_ShowFilters_Click" InputGestureText="Strg+O"/>
                <MenuItem x:Name="Menu_DeliveryJournal_SavePdfFilters" Header="...aus Filtern speichern... (PDF)"
                          Click="Menu_DeliveryJournal_SavePdfFilters_Click"/>
                <MenuItem x:Name="Menu_DeliveryJournal_PrintFilters" Header="...aus Filtern drucken"
                          Click="Menu_DeliveryJournal_PrintFilters_Click" InputGestureText="Strg+Shift+O"/>
                <Separator/>
                <MenuItem x:Name="Menu_DeliveryJournal_SaveToday" Header="...von heute speichern... (Excel)"
                          Click="Menu_DeliveryJournal_SaveToday_Click"/>
                <MenuItem x:Name="Menu_DeliveryJournal_ShowToday" Header="...von heute anzeigen (PDF)"
                          Click="Menu_DeliveryJournal_ShowToday_Click"/>
                <MenuItem x:Name="Menu_DeliveryJournal_SavePdfToday" Header="...von heute speichern... (PDF)"
                          Click="Menu_DeliveryJournal_SavePdfToday_Click"/>
                <MenuItem x:Name="Menu_DeliveryJournal_PrintToday" Header="...von heute drucken"
                          Click="Menu_DeliveryJournal_PrintToday_Click" InputGestureText="Strg+J"/>
            </MenuItem>
            <MenuItem Header="Abwertungsliste" x:Name="Menu_DeliveryDepreciationList">
                <MenuItem x:Name="Menu_DeliveryDepreciationList_SaveFilters" Header="...aus Filtern speichern... (Excel)"
                          Click="Menu_DeliveryDepreciationList_SaveFilters_Click"/>
                <MenuItem x:Name="Menu_DeliveryDepreciationList_ShowFilters" Header="...aus Filtern anzeigen (PDF)"
                          Click="Menu_DeliveryDepreciationList_ShowFilters_Click"/>
                <MenuItem x:Name="Menu_DeliveryDepreciationList_SavePdfFilters" Header="...aus Filtern speichern... (PDF)"
                          Click="Menu_DeliveryDepreciationList_SavePdfFilters_Click"/>
                <MenuItem x:Name="Menu_DeliveryDepreciationList_PrintFilters" Header="...aus Filtern drucken"
                          Click="Menu_DeliveryDepreciationList_PrintFilters_Click"/>
                <Separator/>
                <MenuItem x:Name="Menu_DeliveryDepreciationList_SaveSeason" Header="...von Saison speichern... (Excel)"
                          Click="Menu_DeliveryDepreciationList_SaveSeason_Click"/>
                <MenuItem x:Name="Menu_DeliveryDepreciationList_ShowSeason" Header="...von Saison anzeigen (PDF)"
                          Click="Menu_DeliveryDepreciationList_ShowSeason_Click"/>
                <MenuItem x:Name="Menu_DeliveryDepreciationList_SavePdfSeason" Header="...von Saison speichern... (PDF)"
                          Click="Menu_DeliveryDepreciationList_SavePdfSeason_Click"/>
                <MenuItem x:Name="Menu_DeliveryDepreciationList_PrintSeason" Header="...von Saison drucken"
                          Click="Menu_DeliveryDepreciationList_PrintSeason_Click"/>
            </MenuItem>
            <MenuItem Header="Liefermengen" x:Name="Menu_DeliveryDataList">
                <MenuItem x:Name="Menu_DeliveryDataList_SaveFilters" Header="...aus Filtern speichern... (Excel)"
                          Click="Menu_DeliveryDataList_SaveFilters_Click"/>
            </MenuItem>
            <MenuItem Header="Statistik" x:Name="Menu_Statistics">
                <MenuItem Header="Qualitätsstatistik..." x:Name="Menu_Statistics_WineQuality">
                    <MenuItem x:Name="Menu_Statistics_WineQuality_ShowFilters" Header="...aus Filtern anzeigen (PDF)"
                              Click="Menu_Statistics_WineQuality_ShowFilters_Click"/>
                    <MenuItem x:Name="Menu_Statistics_WineQuality_SavePdfFilters" Header="...aus Filtern speichern... (PDF)"
                              Click="Menu_Statistics_WineQuality_SavePdfFilters_Click"/>
                    <MenuItem x:Name="Menu_Statistics_WineQuality_PrintFilters" Header="...aus Filtern drucken"
                              Click="Menu_Statistics_WineQuality_PrintFilters_Click"/>
                    <Separator/>
                    <MenuItem x:Name="Menu_Statistics_WineQuality_ShowToday" Header="...von heute anzeigen (PDF)"
                              Click="Menu_Statistics_WineQuality_ShowToday_Click"/>
                    <MenuItem x:Name="Menu_Statistics_WineQuality_SavePdfToday" Header="...von heute speichern... (PDF)"
                              Click="Menu_Statistics_WineQuality_SavePdfToday_Click"/>
                    <MenuItem x:Name="Menu_Statistics_WineQuality_PrintToday" Header="...von heute drucken"
                              Click="Menu_Statistics_WineQuality_PrintToday_Click" InputGestureText="Strg+Q"/>
                    <Separator/>
                    <MenuItem x:Name="Menu_Statistics_WineQuality_ModeOe" Header="...nach °Oe aufschlüsseln" IsCheckable="True" IsChecked="True"
                              Click="Menu_Statistics_WineQuality_Mode_Click"/>
                    <MenuItem x:Name="Menu_Statistics_WineQuality_ModeKmw10" Header="...nach °KMW aufschlüsseln (&#x2152;)" IsCheckable="True"
                              Click="Menu_Statistics_WineQuality_Mode_Click"/>
                    <MenuItem x:Name="Menu_Statistics_WineQuality_ModeKmw5" Header="...nach °KMW aufschlüsseln (&#x2155;)" IsCheckable="True"
                              Click="Menu_Statistics_WineQuality_Mode_Click"/>
                    <MenuItem x:Name="Menu_Statistics_WineQuality_ModeKmw2" Header="...nach °KMW aufschlüsseln (&#x00BD;)" IsCheckable="True"
                              Click="Menu_Statistics_WineQuality_Mode_Click"/>
                    <MenuItem x:Name="Menu_Statistics_WineQuality_ModeKmw1" Header="...nach °KMW aufschlüsseln (ganze)" IsCheckable="True"
                              Click="Menu_Statistics_WineQuality_Mode_Click"/>
                </MenuItem>
                <MenuItem x:Name="Menu_Statistics_Locality" Header="Lieferstatistik pro Ort...">
                    <MenuItem x:Name="Menu_Statistic_Locality_SaveFilters" Header="...aus Filtern speichern... (Excel)"
                              Click="Menu_Statistic_Locality_SaveFilters_Click"/>
                </MenuItem>
            </MenuItem>
            <MenuItem Header="BKI">
                <MenuItem x:Name="Menu_Bki_SaveList" Header="Traubentransportscheinliste speichern..."/>
            </MenuItem>
            <MenuItem Header="Export">
                <MenuItem x:Name="Menu_Export_ExportSelected" Header="...von ausgewählter Lieferung speichern..." IsEnabled="False"
                          Click="Menu_Export_ExportSelected_Click"/>
                <MenuItem x:Name="Menu_Export_UploadSelected" Header="...von ausgewählter Lieferung hochladen" IsEnabled="False"
                          Click="Menu_Export_UploadSelected_Click"/>
                <Separator/>
                <MenuItem x:Name="Menu_Export_ExportFilters" Header="...aus Filtern speichern..."
                          Click="Menu_Export_ExportFilters_Click"/>
                <MenuItem x:Name="Menu_Export_UploadFilters" Header="...aus Filtern hochladen"
                          Click="Menu_Export_UploadFilters_Click"/>
                <Separator/>
                <MenuItem x:Name="Menu_Export_ExportSeason" Header="...von Saison/Zweigstelle speichern..."
                          Click="Menu_Export_ExportSeason_Click"/>
                <MenuItem x:Name="Menu_Export_UploadSeason" Header="...von Saison/Zweigstelle hochladen"
                          Click="Menu_Export_UploadSeason_Click"/>
            </MenuItem>
            <MenuItem Header="Einstellungen">
                <MenuItem x:Name="Menu_Settings_EnableFreeEditing" Header="Freie Bearbeitung aktivieren"
                          IsCheckable="True" Checked="Menu_Settings_EnableFreeEditing_Checked" Unchecked="Menu_Settings_EnableFreeEditing_Unchecked"/>
            </MenuItem>
        </Menu>

        <Grid Grid.Row="1" Margin="5,0,0,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="42"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="42"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <TextBox x:Name="SearchInput" Text="{Binding SearchQuery, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                     Grid.ColumnSpan="3" Margin="5,10,156,0" IsReadOnly="False"
                     TextChanged="SearchInput_TextChanged">
                <TextBox.ToolTip>
                    <TextBlock>
                        <Bold>Strg+F</Bold><LineBreak/><LineBreak/>
                        Lieferungen filtern und durchsuchen. Die Filter sind beliebig kombinierbar.<LineBreak/>
                        Groß- und Kleinschreibung ist in den meisten Fällen egal.<LineBreak/>
                        <LineBreak/>
                        Filtern nach:<LineBreak/>
                        <Bold>Sorte</Bold>: z.B. GV, ZW, rr, sa, !gv (ausgenommen GV), ...<LineBreak/>
                        <Bold>Rot/Weiß</Bold>: z.B. r, Rot, w, weiß, ...<LineBreak/>
                        <Bold>Qualitätsstufe</Bold>: z.B. QUW, kab, !ldw (ausgenommen LDW), abgew[ertet], ...<LineBreak/>
                        <Bold>Gradation</Bold>: z.B. &gt;73, &lt;15, 17-18, 15-, &gt;17,5, 62-75, ...<LineBreak/>
                        <Bold>Mitglied</Bold>: z.B. 1234, 987, ...<LineBreak/>
                        <Bold>Saison</Bold>: z.B. 2020, &gt;2015, 2017-2019, &lt;2005, 2019-, ...<LineBreak/>
                        <Bold>Zweigstelle</Bold>: z.B. musterort, ...<LineBreak/>
                        <Bold>Attribut</Bold>: z.B. kabinett, !kabinett (alle außer kabinett), ...<LineBreak/>
                        <Bold>Bewirtschaftung</Bold>: z.B. bio, !kip (alle außer KIP), ...<LineBreak/>
                        <Bold>Gewicht</Bold>: z.B. &lt;500kg, &gt;6000kg, ... (gilt für Menge der gesamten Lieferung)<LineBreak/>
                        <Bold>Datum</Bold>: z.B. 1.9., 15.9.-10.10., -15.10.2020, ...<LineBreak/>
                        <Bold>Uhrzeit</Bold>: z.B. 06:00-08:00, 18:00-, ...<LineBreak/>
                        <Bold>Handwiegung</Bold>: handw[iegung], !Handw[iegung] (alle ohne Handwiegung)<LineBreak/>
                        <Bold>Handlese</Bold>: Handl[ese], !handl[ese] (alle ohne Handlese)<LineBreak/>
                        <Bold>Anlieferung</Bold>: Plane[nwagen]/Kipp[er], !plane[nwagen]/!kipp[er], Lesew[agen], !lesew[agen], kiste[n], !kiste[n]<LineBreak/>
                        <Bold>Gebunden</Bold>: geb[unden], ungeb[unden], !geb[unden], !ungeb[unden]<LineBreak/>
                        <Bold>Gerebelt</Bold>: gerebelt, !Gerebelt (nicht gerebelt gewogen)<LineBreak/>
                        <Bold>Freitext</Bold>: z.B. Lieferscheinnummern, Anmerkung, "quw" (sucht nach dem Text "quw")
                    </TextBlock>
                </TextBox.ToolTip>
            </TextBox>
            <ctrl:IntegerUpDown x:Name="SeasonInput" Text="{Binding FilterSeasonString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                Grid.ColumnSpan="3" Height="25" Width="56" FontSize="14" Minimum="1900" Maximum="9999"
                                Margin="0,10,95,0" VerticalAlignment="Top" HorizontalAlignment="Right"
                                TextChanged="SeasonInput_TextChanged"/>
            <CheckBox x:Name="TodayOnlyInput" Content="Nur heute" IsChecked="{Binding FilterTodayOnly, Mode=TwoWay}"
                      HorizontalAlignment="Right" Margin="0,7,18,0" VerticalAlignment="Top" Grid.Column="1" Grid.ColumnSpan="2"
                      Checked="TodayOnlyInput_Changed" Unchecked="TodayOnlyInput_Changed"/>
            <CheckBox x:Name="AllSeasonsInput" Content="Jede Saison" IsEnabled="{Binding EnableAllSeasons, Mode=TwoWay}" IsChecked="{Binding FilterAllSeasons, Mode=TwoWay}"
                      HorizontalAlignment="Right" Margin="0,24,10,0" VerticalAlignment="Top" Grid.Column="1" Grid.ColumnSpan="2"
                      Checked="AllSeasonsInput_Changed" Unchecked="AllSeasonsInput_Changed"/>
            <DataGrid x:Name="DeliveryList" AutoGenerateColumns="False" HeadersVisibility="Column" IsReadOnly="True" GridLinesVisibility="None" SelectionMode="Single"
                      ItemsSource="{Binding Deliveries, Mode=TwoWay}" SelectedItem="{Binding SelectedDelivery, Mode=TwoWay}"
                      SelectionChanged="DeliveryList_SelectionChanged"
                      CanUserDeleteRows="False" CanUserResizeRows="False" CanUserAddRows="False"
                      Margin="5,0,5,0" Grid.Row="1" FontSize="14" Grid.ColumnSpan="3">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="MgNr." Binding="{Binding MgNr, StringFormat='{}{0} '}" Width="50">
                        <DataGridTextColumn.CellStyle>
                            <Style>
                                <Setter Property="TextBlock.TextAlignment" Value="Right"/>
                            </Style>
                        </DataGridTextColumn.CellStyle>
                    </DataGridTextColumn>
                    <DataGridTextColumn Header="Datum" Binding="{Binding Date, StringFormat='dd.MM.yy'}" Width="70">
                        <DataGridTextColumn.CellStyle>
                            <Style>
                                <Setter Property="TextBlock.TextAlignment" Value="Center"/>
                            </Style>
                        </DataGridTextColumn.CellStyle>
                    </DataGridTextColumn>
                    <DataGridTextColumn Header="Zeit" Binding="{Binding Time, StringFormat='HH:mm'}" Width="50">
                        <DataGridTextColumn.CellStyle>
                            <Style>
                                <Setter Property="TextBlock.TextAlignment" Value="Center"/>
                            </Style>
                        </DataGridTextColumn.CellStyle>
                    </DataGridTextColumn>
                    <DataGridTextColumn Header="Sorte" Binding="{Binding FilteredVaributeString}" Width="60">
                        <DataGridTextColumn.CellStyle>
                            <Style>
                                <Setter Property="TextBlock.Foreground" Value="{Binding FilteredColor}"/>
                                <Setter Property="TextBlock.TextAlignment" Value="Center"/>
                            </Style>
                        </DataGridTextColumn.CellStyle>
                        <DataGridTextColumn.ElementStyle>
                            <Style TargetType="TextBlock">
                                <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
                            </Style>
                        </DataGridTextColumn.ElementStyle>
                    </DataGridTextColumn>
                    <DataGridTextColumn Header="Menge" Binding="{Binding FilteredWeight, StringFormat='{}{0:N0} kg '}" Width="75">
                        <DataGridTextColumn.CellStyle>
                            <Style>
                                <Setter Property="TextBlock.TextAlignment" Value="Right"/>
                            </Style>
                        </DataGridTextColumn.CellStyle>
                    </DataGridTextColumn>
                    <DataGridTextColumn Header="Gradation" Binding="{Binding FilteredKmw, StringFormat='{}{0:N1}° '}" Width="50">
                        <DataGridTextColumn.CellStyle>
                            <Style>
                                <Setter Property="TextBlock.TextAlignment" Value="Right"/>
                            </Style>
                        </DataGridTextColumn.CellStyle>
                    </DataGridTextColumn>
                    <DataGridTextColumn Header="LsNr." Binding="{Binding LsNr}" Width="120"/>
                    <DataGridTextColumn Header="Mitglied" Binding="{Binding Member.AdministrativeName}" Width="180"/>
                    <DataGridTextColumn Header="Zu-/Abschläge" Binding="{Binding FilteredModifiersString}" Width="150"/>
                    <DataGridTextColumn Header="Kommentar" Binding="{Binding CommentsString}" Width="150"/>
                </DataGrid.Columns>
            </DataGrid>

            <Button x:Name="FinishButton" Content="Abschließen" IsEnabled="False" Visibility="Hidden"
                    ToolTip="Übernahme abschließen und Lieferschein drucken"
                    HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="5,5,2.5,10" Grid.Column="0" Grid.Row="2"
                    Click="FinishButton_Click"/>
            <Button x:Name="NewDeliveryPartButton" Content="Neue Teil-Lfrg." IsEnabled="False" Visibility="Hidden"
                    ToolTip="Neue Teillieferung auf selben Lieferschein hinzufügen"
                    HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="2.5,5,2.5,10" Grid.Column="1" Grid.Row="2"
                    Click="NewDeliveryPartButton_Click"/>
                <Button x:Name="CancelCreatingButton" Content="Abbrechen" IsEnabled="False" Visibility="Hidden"
                    HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="2.5,5,5,10" Grid.Column="2" Grid.Row="2"
                    Click="CancelCreatingButton_Click">
                <Button.ToolTip>
                    <TextBlock FontWeight="Bold">Esc</TextBlock>
                </Button.ToolTip>
            </Button>

            <Button x:Name="NewDeliveryButton" Content="Neu" IsEnabled="False" Visibility="Hidden"
                    HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="5,5,2.5,10" Grid.Column="0" Grid.Row="2"
                    Click="NewDeliveryButton_Click">
                <Button.ToolTip>
                    <TextBlock FontWeight="Bold">Alt+Einfg</TextBlock>
                </Button.ToolTip>
            </Button>
            <Button x:Name="DepreciateButton" Content="Abwert./Aufteil." IsEnabled="False"
                    ToolTip="Lieferung vollständig oder teilweise abwerten bzw. auf anderes Mitglied aufteilen"
                    HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="5,5,2.5,10" Grid.Column="0" Grid.Row="2"
                    Click="DepreciateButton_Click"/>
            <Button x:Name="EditDeliveryButton" Content="Bearbeiten" IsEnabled="False"
                    HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="2.5,5,2.5,10" Grid.Column="1" Grid.Row="2"
                    Click="EditDeliveryButton_Click">
                <Button.ToolTip>
                    <TextBlock FontWeight="Bold">Strg+B</TextBlock>
                </Button.ToolTip>
            </Button>
            <Button x:Name="DeleteDeliveryButton" Content="Löschen" IsEnabled="False"
                    HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="2.5,5,5,10" Grid.Column="2" Grid.Row="2"
                    Click="DeleteDeliveryButton_Click">
                <Button.ToolTip>
                    <TextBlock FontWeight="Bold">Alt+Entf</TextBlock>
                </Button.ToolTip>
            </Button>

            <Button x:Name="SaveButton" Content="Speichern" IsEnabled="False" Visibility="Hidden"
                    HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="5,5,2.5,10" Grid.Column="0" Grid.Row="2"
                    Click="SaveButton_Click">
                <Button.ToolTip>
                    <TextBlock FontWeight="Bold">Strg+S</TextBlock>
                </Button.ToolTip>
            </Button>
            <Button x:Name="ResetButton" Content="Zurücksetzen" IsEnabled="False" Visibility="Hidden"
                    HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="2.5,5,2.5,10" Grid.Column="1" Grid.Row="2"
                    Click="ResetButton_Click">
                <Button.ToolTip>
                    <TextBlock FontWeight="Bold">Strg+Z</TextBlock>
                </Button.ToolTip>
            </Button>
            <Button x:Name="CancelButton" Content="Abbrechen" IsEnabled="False" Visibility="Hidden" IsCancel="True"
                    HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="2.5,5,5,10" Grid.Column="2" Grid.Row="2"
                    Click="CancelButton_Click">
                <Button.ToolTip>
                    <TextBlock FontWeight="Bold">Esc</TextBlock>
                </Button.ToolTip>
            </Button>
        </Grid>

        <GridSplitter Grid.Column="1" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>

        <Grid Grid.Row="1" Grid.Column="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="0.625*"/>
                <RowDefinition Height="0.875*"/>
                <RowDefinition Height="0.875*"/>
                <RowDefinition Height="0.25*"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <GroupBox Header="Mitglied" Grid.Column="0" Grid.Row="0" Margin="5,5,5,5">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="70"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>

                    <Label Content="Mitglied:" Margin="10,10,0,0" Grid.Column="0"/>
                    <TextBox x:Name="MgNrInput" Text="{Binding MgNrString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                             Width="48" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" HorizontalAlignment="Left" TextAlignment="Right"
                             TextChanged="MgNrInput_TextChanged" LostFocus="MgNrInput_LostFocus" KeyUp="Input_KeyUp"/>
                    <ComboBox x:Name="MemberInput" SelectedItem="{Binding Member, Mode=TwoWay}" ItemsSource="{Binding MemberSource, Mode=TwoWay}"
                              Grid.Column="1" Margin="53,10,40,10" IsEditable="True"
                              ItemTemplate="{StaticResource MemberAdminNameTemplate}" TextSearch.TextPath="AdministrativeName"
                              SelectionChanged="MemberInput_SelectionChanged" KeyUp="Input_KeyUp"/>
                    <Button x:Name="MemberReferenceButton" Grid.Column="1" Height="25" Width="25" FontFamily="Segoe MDL2 Assets" Content="&#xEE35;" Padding="0,0,0,0"
                            Margin="10,10,10,10" VerticalAlignment="Top" HorizontalAlignment="Right" ToolTip="Zu Mitglied springen"
                            Click="MemberReferenceButton_Click"/>

                    <Label Content="Wohnort:" Margin="10,38,0,0" Grid.Column="0"/>
                    <TextBox x:Name="MemberAddressField" Text="{Binding MemberAddress}"
                             Grid.Column="1" Margin="0,40,10,10" FontSize="12" Height="22"
                             IsReadOnly="True" IsTabStop="False"/>
                </Grid>
            </GroupBox>

            <GroupBox Header="Lieferung" Grid.Column="0" Grid.Row="1" Grid.RowSpan="3" Margin="5,5,5,5">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>

                    <Label Content="Lieferschein-Nr.:" Margin="10,10,0,0" Grid.Column="0"/>
                    <TextBox x:Name="LsNrInput" Text="{Binding LsNr, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                             Width="126" Grid.Column="1" HorizontalAlignment="Left" Margin="0,10,0,0"
                             IsReadOnly="True" IsTabStop="False"
                             TextChanged="TextBox_TextChanged"/>

                    <Label Content="Datum/Uhrzeit:" Margin="10,40,0,0" Grid.Column="0"/>
                    <TextBox x:Name="DateInput" Text="{Binding Date, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                             Width="77" Grid.Column="1" HorizontalAlignment="Left" Margin="0,40,0,0"
                             IsReadOnly="True"
                             TextChanged="DateInput_TextChanged" LostFocus="DateInput_LostFocus"/>
                    <TextBox x:Name="TimeInput" Text="{Binding Time, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                             Width="44" Grid.Column="1" HorizontalAlignment="Left" Margin="82,40,0,0"
                             IsReadOnly="True"
                             TextChanged="TimeInput_TextChanged" LostFocus="TimeInput_LostFocus"/>

                    <Label Content="Zweigstelle:" Margin="10,70,0,0" Grid.Column="0"/>
                    <ComboBox x:Name="BranchInput" SelectedItem="{Binding Branch, Mode=TwoWay}" ItemsSource="{Binding BranchSource, Mode=TwoWay}"
                              Width="126" Margin="0,70,10,0" Grid.Column="1" HorizontalAlignment="Left"
                              IsEnabled="False"
                              SelectionChanged="BranchInput_SelectionChanged"
                              DisplayMemberPath="Name" TextSearch.TextPath="Name"/>

                    <Label Content="Anmerkung:" Margin="10,100,0,10"/>
                    <TextBox x:Name="CommentInput" Text="{Binding Comment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                             Grid.Column="1" Margin="0,100,10,10"
                             TextChanged="TextBox_TextChanged"/>

                    <ListBox x:Name="DeliveryPartList" Margin="5,135,5,5" Grid.ColumnSpan="2"
                                SelectionChanged="DeliveryPartList_SelectionChanged">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="{Binding DPNr}" Width="13" TextAlignment="Right" Margin="0,0,7,0"/>
                                    <TextBlock Text="{Binding SortId}" Foreground="{Binding Variety.Color}" TextAlignment="Center" Width="30"/>
                                    <TextBlock Text="{Binding Kmw, StringFormat='{}{0:N1}°'}" Width="40" TextAlignment="Right" Padding="0,0,10,0"/>
                                    <TextBlock Text="{Binding QualId}" Width="30"/>
                                    <TextBlock Text="{Binding Weight, StringFormat='{}{0:N0} kg'}" Width="60" TextAlignment="Right" Padding="0,0,10,0"/>
                                    <TextBlock Text="{Binding Attribute.Name}" Width="60"/>
                                    <TextBlock Text="{Binding Cultivation.Name}" Width="50"/>
                                </StackPanel>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </Grid>
            </GroupBox>

            <GroupBox Header="Sorte" Grid.Column="1" Grid.Row="0" Margin="5,5,5,5">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="80"/>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>

                    <Label Content="Sorte:" Margin="10,10,0,0" Grid.Column="0"/>
                    <TextBox x:Name="SortIdInput" Text="{Binding SortId, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding WineVar.Color}"
                             Width="36" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" HorizontalAlignment="Left"
                             TextChanged="SortIdInput_TextChanged" LostFocus="SortIdInput_LostFocus" KeyUp="Input_KeyUp"/>
                    <ComboBox x:Name="WineVarietyInput" SelectedItem="{Binding WineVar, Mode=TwoWay}" ItemsSource="{Binding WineVarSource, Mode=TwoWay}"
                              Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Margin="41,10,10,10"
                              TextSearch.TextPath="Name"
                              SelectionChanged="WineVarietyInput_SelectionChanged" KeyUp="Input_KeyUp">
                        <ComboBox.ItemTemplateSelector>
                            <ctrl:WineVarietyTemplateSelector/>
                        </ComboBox.ItemTemplateSelector>
                    </ComboBox>

                    <Label Content="Attr./Bewirt.:" Margin="10,40,0,0" Grid.Column="0"/>
                    <ComboBox x:Name="AttributeInput" SelectedItem="{Binding WineAttrObj, Mode=TwoWay}" ItemsSource="{Binding WineAttrSource, Mode=TwoWay}"
                              Grid.Row="1" Grid.Column="1" Margin="0,40,5,10"
                              DisplayMemberPath="Name"
                              KeyUp="Input_KeyUp"/>
                    <ComboBox x:Name="CultivationInput" SelectedItem="{Binding WineCultObj, Mode=TwoWay}" ItemsSource="{Binding WineCultSource, Mode=TwoWay}"
                              Grid.Row="1" Grid.Column="2" Margin="0,40,10,10"
                              DisplayMemberPath="Name"
                              KeyUp="Input_KeyUp"/>
                </Grid>
            </GroupBox>

            <GroupBox Header="Gradation" Grid.Column="1" Grid.Row="1" Margin="5,5,5,5">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <Label Content="Gradation:" Margin="10,10,10,10"/>
                    <ctrl:UnitTextBox x:Name="GradationOeInput" Unit="°Oe" Text="{Binding GradationOeString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                      TextChanged="GradationOeInput_TextChanged" KeyUp="Input_KeyUp"
                                      Grid.Column="1" Width="54" Margin="0,10,10,10" HorizontalAlignment="Left" VerticalAlignment="Top"/>

                    <Label Content="=" Margin="60,10,10,10" Grid.Column="1"/>
                    <ctrl:UnitTextBox x:Name="GradationKmwInput" Unit="°KMW" Text="{Binding GradationKmwString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                      TextChanged="GradationKmwInput_TextChanged" KeyUp="Input_KeyUp"
                                      Grid.Column="1" Width="68" Margin="78,10,10,10" HorizontalAlignment="Left" VerticalAlignment="Top"/>

                    <Label Content="Qualitätsstufe:" Margin="10,40,10,10"/>
                    <ComboBox x:Name="WineQualityLevelInput" SelectedItem="{Binding WineQualityLevel, Mode=TwoWay}" ItemsSource="{Binding WineQualityLevelSource, Mode=TwoWay}"
                              Width="146" Margin="0,40,10,10" Grid.Column="1" HorizontalAlignment="Left"
                              TextSearch.TextPath="Name"
                              SelectionChanged="WineQualityLevelInput_SelectionChanged" KeyUp="Input_KeyUp">
                        <ComboBox.ItemTemplateSelector>
                            <ctrl:WineQualityLevelTemplateSelector/>
                        </ComboBox.ItemTemplateSelector>
                    </ComboBox>

                    <CheckBox x:Name="AbgewertetInput" IsChecked="{Binding Abgewertet, Mode=TwoWay}"
                              Content="Abgewertet" IsEnabled="False"
                              VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10,75,10,10" Grid.Column="0" Grid.ColumnSpan="2"/>
                </Grid>
            </GroupBox>

            <GroupBox Header="Menge" Grid.Column="1" Grid.Row="2" Margin="5,5,5,5">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="70"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>

                    <Label Content="Gewicht:" Margin="10,10,10,10"/>
                    <ctrl:UnitTextBox x:Name="WeightInput" Unit="kg" Text="{Binding WeightString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                      TextChanged="WeightInput_TextChanged"
                                      Grid.Column="1" Width="70" Margin="0,10,10,10" HorizontalAlignment="Left" VerticalAlignment="Top"/>

                    <CheckBox x:Name="ManualWeighingInput" IsChecked="{Binding IsManualWeighing, Mode=TwoWay}"
                              Content="Handwiegung" IsEnabled="False"
                              VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10,45,10,10" Grid.Column="0" Grid.ColumnSpan="2"
                              Checked="CheckBox_Changed" Unchecked="CheckBox_Changed"/>

                    <CheckBox x:Name="GerebeltGewogenInput" IsChecked="{Binding IsNetWeightValue, Mode=TwoWay}"
                              Content="Gerebelt gewogen" IsThreeState="True"
                              VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10,75,10,10" Grid.Column="0" Grid.ColumnSpan="2"
                              Checked="GerebeltGewogenInput_Changed" Unchecked="GerebeltGewogenInput_Changed" Indeterminate="GerebeltGewogenInput_Changed"/>

                    <Button x:Name="WeighingAButton" Content="Wiegen A" Width="120"
                            Click="WeighingButton_Click"
                            VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10,10,10,10" Grid.Column="2"/>
                    <Button x:Name="WeighingBButton" Content="Wiegen B" Width="120"
                            Click="WeighingButton_Click"
                            VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10,42,10,10" Grid.Column="2"/>
                    <Button x:Name="WeighingCButton" Content="Wiegen C" Width="120"
                            Click="WeighingButton_Click"
                            VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10,74,10,10" Grid.Column="2"/>
                    <Button x:Name="WeighingDButton" Content="Wiegen D" Width="120"
                            Click="WeighingButton_Click"
                            VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10,106,10,10" Grid.Column="2"/>
                    <Button x:Name="WeighingManualButton" Content="Handwiegung" Width="120"
                            Click="WeighingManualButton_Click"
                            VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10,138,10,10" Grid.Column="2"/>
                </Grid>
            </GroupBox>

            <GroupBox Header="Sonstiges" Grid.Column="1" Grid.Row="3" Grid.RowSpan="2" Margin="5,5,5,10">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="65"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>

                    <Label Content="Zu-/Abschläge:" Margin="10,10,0,10"/>
                    <ctrl:CheckComboBox x:Name="ModifiersInput" SelectedItems="{Binding Modifiers}" ItemsSource="{Binding ModifiersSource, Mode=TwoWay}"
                                        Margin="0,10,10,10" Grid.Column="1" Grid.ColumnSpan="2"
                                        ItemTemplate="{StaticResource ModifierTemplate}" Delimiter=", " AllItemsSelectedContent="Alle"
                                        SelectionChanged="ModifiersInput_SelectionChanged"/>

                    <Label Content="Anmerkung:" Margin="10,40,0,10"/>
                    <TextBox x:Name="PartCommentInput" Text="{Binding PartComment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                             Grid.Column="1" Margin="0,40,10,10" Grid.ColumnSpan="2"
                             TextChanged="TextBox_TextChanged"/>

                    <Label Content="Temperatur:" Margin="10,70,0,10"/>
                    <ctrl:UnitTextBox x:Name="TemperatureInput" Unit="°C" Text="{Binding TemperatureString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                      TextChanged="TemperatureAcidInput_TextChanged" LostFocus="TemperatureAcidInput_LostFocus"
                                      Grid.Column="1" Margin="0,70,10,10" VerticalAlignment="Top"/>

                    <Label Content="Säure:" Margin="10,100,0,10"/>
                    <ctrl:UnitTextBox x:Name="AcidInput" Unit="g/l" Text="{Binding AcidString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                      TextChanged="TemperatureAcidInput_TextChanged" LostFocus="TemperatureAcidInput_LostFocus"
                                      Grid.Column="1" Margin="0,100,10,10" VerticalAlignment="Top"/>

                    <CheckBox x:Name="HandPickedInput" IsChecked="{Binding IsHandPicked, Mode=TwoWay}"
                              Content="Handlese" Margin="10,135,10,0" Grid.Column="0" Grid.ColumnSpan="2" IsThreeState="True"
                              VerticalAlignment="Top" HorizontalAlignment="Left"
                              Checked="HandPickedInput_Changed" Unchecked="HandPickedInput_Changed" Indeterminate="HandPickedInput_Changed"/>

                    <RadioButton x:Name="UnloadingDumperInput" GroupName="Unloading" IsChecked="{Binding IsUnloadingDumper, Mode=TwoWay}"
                                 Content="Planenw./Kipper" Margin="10,75,0,0" Grid.Column="2"
                                 VerticalAlignment="Top" HorizontalAlignment="Left"
                                 Checked="UnloadingInput_Checked" Unchecked="UnloadingInput_Unchecked"/>
                    <RadioButton x:Name="UnloadingPumpedInput" GroupName="Unloading" IsChecked="{Binding IsUnloadingPumped, Mode=TwoWay}"
                                 Content="Lesewagen" Margin="10,95,0,0" Grid.Column="2"
                                 VerticalAlignment="Top" HorizontalAlignment="Left"
                                 Checked="UnloadingInput_Checked" Unchecked="UnloadingInput_Unchecked"/>
                    <RadioButton x:Name="UnloadingBoxInput" GroupName="Unloading" IsChecked="{Binding IsUnloadingBox, Mode=TwoWay}"
                                 Content="Kiste(n)" Margin="10,115,0,0" Grid.Column="2"
                                 VerticalAlignment="Top" HorizontalAlignment="Left"
                                 Checked="UnloadingInput_Checked" Unchecked="UnloadingInput_Unchecked"/>
                    <RadioButton x:Name="UnloadingOtherInput" GroupName="Unloading" IsChecked="{Binding IsUnloadingOther, Mode=TwoWay}"
                                 Content="Andere/Unbek." Margin="10,135,0,0" Grid.Column="2"
                                 VerticalAlignment="Top" HorizontalAlignment="Left"
                                 Checked="UnloadingInput_Checked" Unchecked="UnloadingInput_Unchecked"/>
                </Grid>
            </GroupBox>

            <GroupBox Header="Herkunft" Grid.Column="0" Grid.Row="4" Margin="5,5,5,10">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>

                    <Label Content="Weinbaugebiet:" Margin="10,10,0,10" Grid.Column="0"/>
                    <ComboBox x:Name="WineOriginInput" SelectedItem="{Binding WineOrigin, Mode=TwoWay}" ItemsSource="{Binding WineOriginSource, Mode=TwoWay}"
                              Margin="0,10,10,10" Grid.Column="1"
                              TextSearch.TextPath="Name">
                        <ComboBox.ItemTemplateSelector>
                            <ctrl:WineOriginTemplateSelector/>
                        </ComboBox.ItemTemplateSelector>
                    </ComboBox>

                    <Label Content="Weinbau-KG:" Margin="10,40,0,10" Grid.Column="0"/>
                    <ComboBox x:Name="WineKgInput" SelectedItem="{Binding WineKgObj, Mode=TwoWay}" ItemsSource="{Binding WineKgSource, Mode=TwoWay}"
                              Margin="0,40,10,10" Grid.Column="1"
                              DisplayMemberPath="Name"
                              SelectionChanged="WineKgInput_SelectionChanged"/>

                    <Label Content="Ried:" Margin="10,70,0,10" Grid.Column="0"/>
                    <ComboBox x:Name="WineRdInput" SelectedItem="{Binding WineRdObj, Mode=TwoWay}" ItemsSource="{Binding WineRdSource, Mode=TwoWay}"
                              Margin="0,70,10,10" Grid.Column="1"
                              DisplayMemberPath="Name"/>

                    <CheckBox x:Name="GebundenInput" IsChecked="{Binding IsGebunden, Mode=TwoWay}"
                              Content="Gebunden" Margin="10,105,0,0" Grid.Column="0" Grid.ColumnSpan="2" IsThreeState="True"
                              VerticalAlignment="Top" HorizontalAlignment="Left"
                              Checked="CheckBox_Changed" Unchecked="CheckBox_Changed" Indeterminate="CheckBox_Changed"/>
                </Grid>
            </GroupBox>
        </Grid>

        <StatusBar Grid.Row="2" Grid.ColumnSpan="3" BorderThickness="0,1,0,0" BorderBrush="Gray">
            <StatusBar.ItemsPanel>
                <ItemsPanelTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="2*" MaxWidth="250"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="150"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="2*" MaxWidth="180"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="3*"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="3*"/>
                        </Grid.ColumnDefinitions>
                    </Grid>
                </ItemsPanelTemplate>
            </StatusBar.ItemsPanel>
            <StatusBarItem>
                <TextBlock ToolTip="{Binding StatusMembers}">
                    Mitglieder: <Run Text="{Binding StatusMembers}"/>
                </TextBlock>
            </StatusBarItem>
            <Separator Grid.Column="1"/>
            <StatusBarItem Grid.Column="2">
                <TextBlock>
                    Lieferungen: <Run Text="{Binding StatusDeliveries}"/>
                </TextBlock>
            </StatusBarItem>
            <Separator Grid.Column="3"/>
            <StatusBarItem Grid.Column="4">
                <TextBlock ToolTip="{Binding StatusVarieties}">
                    Sorten: <Run Text="{Binding StatusVarieties}"/>
                </TextBlock>
            </StatusBarItem>
            <Separator Grid.Column="5"/>
            <StatusBarItem Grid.Column="6">
                <TextBlock ToolTip="{Binding StatusWeightToolTip}">
                    Menge: <Run Text="{Binding StatusWeight}"/>
                </TextBlock>
            </StatusBarItem>
            <Separator Grid.Column="7"/>
            <StatusBarItem Grid.Column="8">
                <TextBlock ToolTip="{Binding StatusGradationToolTip}">
                    Gradation: <Run Text="{Binding StatusGradation}"/>
                </TextBlock>
            </StatusBarItem>
        </StatusBar>
    </Grid>
</local:AdministrationWindow>
