<localView:BeWoView x:Class="BeWo.View.Detail.AuszahlungsartenAddView"
					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:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
					xmlns:val="clr-namespace:BeWo.Validation"
                    Height="Auto" Width="Auto" HorizontalAlignment="Stretch"
					VerticalAlignment="Stretch" Focusable="True">

    <Grid>
		<GroupBox Name="root" Header="Aktuell definierte Auszahlungsarten" Style="{StaticResource ObjectEditGroupBox}">
			<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="*" />
					<ColumnDefinition Width="Auto" />
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
					<RowDefinition Height="*" />
				</Grid.RowDefinitions>
				<Label>Bezeichnung:</Label>
				<TextBox Grid.Row="0" Grid.Column="1" Margin="3" Height="23" Text="{val:ValidationBinding Path=NewVM.Name, UpdateSourceTrigger=PropertyChanged}"></TextBox>
				<Button Name="button_addAuszahlungsart" Click="button_addAuszahlungsart_Click" Grid.Row="0" Grid.Column="2"
						Height="25" Margin="3,3,3,3" IsDefault="True" Padding="5,0,5,1" HorizontalAlignment="Right">Hinzufügen</Button>
				<dxg:GridControl x:Name="DatagridServices" Margin="0,10,0,0" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" DataSource="{Binding VMList}">
					<dxg:GridControl.Columns>
						<dxg:GridColumn FieldName="IsDeleteable" Header="" FixedWidth="True" Width="24" ReadOnly="True">
							<dxg:GridColumn.CellTemplate>
								<DataTemplate>
									<Button Content="r" Click="DeleteButton_Click" Visibility="{Binding Path=EditValue, Converter={StaticResource BoolVisibilityConverter}}" FontFamily="Webdings" Width="18" Height="18" VerticalAlignment="Center" />
								</DataTemplate>
							</dxg:GridColumn.CellTemplate>
						</dxg:GridColumn>
						<dxg:GridColumn FieldName="Name" Header="Bezeichnung" />
					</dxg:GridControl.Columns>
					<dxg:GridControl.View>
						<dxg:TableView AutoWidth="true" ShowGroupPanel="False" ShowGroupedColumns="false" ShowTotalSummary="False" NavigationStyle="Cell" />
					</dxg:GridControl.View>
				</dxg:GridControl>
			</Grid>
		</GroupBox>
    </Grid>
</localView:BeWoView>
