<localView:BeWoView x:Class="BeWo.View.Detail.AdditionalServiceRegionView"
					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:val="clr-namespace:BeWo.Validation" 
					xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
                    Height="Auto" Width="Auto" HorizontalAlignment="Stretch" 
					VerticalAlignment="Stretch" Focusable="True">
	<GroupBox Name="root" Header="Aktuell definierte Angebote" Style="{StaticResource ObjectEditGroupBox}">
		<Grid>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="*" />
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="*" />
				<ColumnDefinition Width="Auto" />
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" />
			</Grid.RowDefinitions>
			<Label>Bezeichnung</Label>
			<TextBox Grid.Column="1" Margin="3" Height="23" Text="{val:ValidationBinding Path=NewVM.Name, UpdateSourceTrigger=PropertyChanged}" />
			<Label Grid.Column="2">Bereich</Label>
			<ComboBox Grid.Column="3" Height="23" ItemsSource="{Binding Path=PossibleServices, Mode=OneWay}" Margin="3" SelectedItem="{val:ValidationBinding Path=NewVM.AdditionalService}"/>
			<Button Name="button_addServiceRegion" Click="Button_addServiceRegion_OnClick" Grid.Column="4" Height="25" Margin="3,3,3,3" Padding="5 0" IsDefault="True" Content="Hinzufügen" Grid.ColumnSpan="2" />
			<dxg:GridControl x:Name="DatagridRegions" Margin="0,10,0,0" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="7" DataSource="{Binding VMList}">
				<dxg:GridControl.Columns>
					<dxg:GridColumn FieldName="IsDeleteable" Header="" FixedWidth="True" Width="24" ReadOnly="True">
						<dxg:GridColumn.CellTemplate>
							<DataTemplate>
								<Button Content="r" IsEnabled="{Binding Path=EditValue}" FontFamily="Webdings" Click="DeleteButton_Click" Width="18" Height="18" VerticalAlignment="Center" />
							</DataTemplate>
						</dxg:GridColumn.CellTemplate>
					</dxg:GridColumn>
					<dxg:GridColumn FieldName="Name" Header="Bezeichnung" Width="200" />
					<dxg:GridColumn x:Name="ColumnService" FieldName="AdditionalService" Header="Bereich" Width="200" />
				</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>
</localView:BeWoView>
