<localView:BeWoView x:Class="BeWo.View.Master.FinanceView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls" xmlns:val="clr-namespace:BeWo.Validation" xmlns:localView="clr-namespace:BeWo.View" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Focusable="True">

	<Grid>
		<uc:ShadowChrome>
			<GroupBox Style="{StaticResource MainContentGroupBoxStyle}">
				<GroupBox.Header>
					<StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" Margin="0,11,0,0">
						<Image Source="..\..\Ressources\Icons\CoinsDisabled.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="Finanzen" Margin="10,0,0,0" Background="{x:Null}" Foreground="{DynamicResource MainGroupBoxForegroundBrush}" FontSize="22" BorderBrush="{x:Null}" VerticalAlignment="Stretch" Padding="0,0,0,0" BorderThickness="0,0,0,0" />
					</StackPanel>
				</GroupBox.Header>
				<Grid Margin="0,3,0,0" Background="{StaticResource ObjectEditBackgroundBrush}">
					<Grid.RowDefinitions>
						<RowDefinition Height="Auto" />
						<RowDefinition Height="*" />
						<RowDefinition Height="Auto" />
					</Grid.RowDefinitions>
					<Rectangle Fill="{DynamicResource AccountingContentBrush}" Height="6" />
					<TabControl x:Name="root" Grid.Row="1" Style="{StaticResource ObjectEditTabControl}" BorderThickness="0,0,0,0">
						<TabItem Header="Abschlagszahlungen" IsSelected="True" Name="tabitem_financeBooking" Selector.Selected="tabitem_financeBooking_Selected" />
            <!--<TabItem Header="Abschlagszahlungen2" Name="tabitem_financeBooking2" Selector.Selected="tabitem_financeBooking_Selected2" />-->
						<TabItem Header="Buchungsübersicht" Name="tabitem_financeOverview" Selector.Selected="tabitem_financeOverview_Selected" />
						<TabItem Header="Finanzauswertung" Name="tabitem_openClaims" Selector.Selected="tabitem_openClaims_Selected" />
						<!--
                        <TabItem Header="Rechnungen" Name="tabitem_invoice" Selector.Selected="tabitem_invoice_Selected"/>
                        <TabItem Header="Rechnungsübersicht" Name="tabitem_invoiceOverview" Selector.Selected="tabitem_invoiceOverview_Selected"/>
                        -->
						<TabItem Header="Spitzabrechnungen" Name="tabitem_settlementinvoice" Selector.Selected="tabitem_settlementinvoice_Selected" />
						<TabItem Header="Rechnungen für Eigenanteil" Name="tabitem_equityinvoice" Selector.Selected="tabitem_equityinvoice_Selected" />
                        <TabItem Header="Sammelrechnung" Name="tabitem_collectiveinvoice"
                                Selector.Selected="tabitem_collectiveinvoice_Selected" />
                        <TabItem Header="Allgemeine Rechnungen" Name="tabitem_otherinvoice" Selector.Selected="tabitem_otherinvoice_Selected" />
						<TabItem Header="Rechnungsübersicht" Name="tabitem_overviewinvoice" Selector.Selected="tabitem_overviewinvoice_Selected" />
						<TabItem Header="Bargeldverwaltung" Name="tabitem_bargeldverwaltung" Selector.Selected="tabitem_bargeldverwaltung_Selected"/>
                        <TabItem Header="Dokumente" Name="tabitem_documents" Selector.Selected="tabitem_documents_Selected" />
					</TabControl>
					<Border Grid.Row="2" Grid.ColumnSpan="3" Height="40" Margin="0,0,0,0" VerticalAlignment="Stretch" Background="#FF000000">
						<Border.OpacityMask>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#19000000" Offset="0" />
								<GradientStop Color="#33FFFFFF" Offset="1" />
							</LinearGradientBrush>
						</Border.OpacityMask>
					</Border>
					<StackPanel Grid.ColumnSpan="3" Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" Height="Auto" Margin="0,5,5,0" HorizontalAlignment="Right">
						<!--<Button x:Name="btnSave" Command="ApplicationCommands.Save" Content="Speichern" Margin="0,0,2,0" Height="25" />-->
						<Button x:Name="btnClose" Command="ApplicationCommands.Close" Content="Schließen" Margin="0,0,0,0" Height="25" />
					</StackPanel>
				</Grid>
			</GroupBox>
		</uc:ShadowChrome>
	</Grid>
</localView:BeWoView>