<view:BeWoView x:Class="BeWo.Scheduler.View.MitarbeiterverfuegbarkeitsinfoView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:view="clr-namespace:BeWo.View"
      xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
      xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
      mc:Ignorable="d" 
      Height="Auto" Width="Auto" HorizontalAlignment="Stretch"  VerticalAlignment="Stretch" Focusable="True">

	<Grid Width="Auto" Height="Auto" x:Name="root">
		<GroupBox x:Name="rootGroupBox" Style="{StaticResource PopUpWindowStyle}" Header="Mitarbeiterverfügbarkeit">
			<Grid Margin="0,3,0,0" Background="{StaticResource ObjectEditBackgroundBrush}">
				<Grid.RowDefinitions>
					<RowDefinition Height="*" />
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>
				<dxg:GridControl DataSource="{Binding Verfuegbarkeiten}">
					<dxg:GridControl.Columns>
						<dxg:GridColumn FieldName="Mitarbeiter" Header="Mitarbeiter" />
						<dxg:GridColumn FieldName="Ueberstunden" Header="Überstunden">
							<dxg:GridColumn.EditSettings>
								<dxe:TextEditSettings MaskUseAsDisplayFormat="True" Mask="########0.00" MaskType="Numeric" />
							</dxg:GridColumn.EditSettings>
						</dxg:GridColumn>
					</dxg:GridControl.Columns>
					<dxg:GridControl.View>
						<dxg:TableView AutoWidth="True" ShowGroupPanel="False" BestFitMode="AllRows"/>
					</dxg:GridControl.View>
				</dxg:GridControl>
				<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="3">
					<Button Content="Schließen" Margin="0,0,3,0" Command="ApplicationCommands.Close" Height="25" />
				</StackPanel>
			</Grid>
		</GroupBox>
	</Grid>
</view:BeWoView>
