<localView:BeWoView x:Class="BeWo.View.Detail.SupportConceptGoalView" 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" xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Focusable="True">
	<GroupBox Name="root" Header="Aktuell definierte Ergebnisziele" Style="{StaticResource ObjectEditGroupBox}">
		<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="3*" />
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="2*" />
				<ColumnDefinition Width="Auto" />
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" />
			</Grid.RowDefinitions>
			<Label Grid.Column="0" Grid.Row="0">Bezeichnung</Label>
			<TextBox Grid.Column="1" Grid.Row="0" Margin="3" Height="23" Text="{val:ValidationBinding Path=NewVM.Description, UpdateSourceTrigger=PropertyChanged}" />
			<Label Grid.Column="2" Grid.Row="0">Grundsatzziel</Label>
			<ComboBox Name="combobox_categories" Grid.Column="3" Grid.Row="0" Height="23" ItemsSource="{Binding Path=PossibleCategories, Mode=OneWay}" Margin="3" SelectedItem="{val:ValidationBinding Path=NewVM.ParentEntry}" />
			<Button Name="button_add" Click="button_add_Click" Grid.Column="6" Grid.Row="0" Height="25" Margin="3" Padding="5 0" IsDefault="True">Hinzufügen</Button>
			<dxg:GridControl x:Name="datagridcontrol" 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="Description" Header="Bezeichnung" Width="180" />
					<dxg:GridColumn x:Name="column_category" FieldName="ParentEntry" Header="Grundsatzziel" 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>