Some prettifying

This commit is contained in:
MiskolcziRichard
2024-04-29 11:31:41 +02:00
parent 9687f26c19
commit 405aa58176

View File

@@ -27,8 +27,14 @@
</ListBox.ItemContainerStyle> </ListBox.ItemContainerStyle>
<ListBox.ItemTemplate> <ListBox.ItemTemplate>
<DataTemplate> <DataTemplate>
<Border BorderBrush="Black" BorderThickness="1" Margin="5">
<StackPanel> <StackPanel>
<Grid> <Grid>
<Grid.Resources>
<Style TargetType="TextBox">
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
</Grid.Resources>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" /> <ColumnDefinition Width="2*" />
<ColumnDefinition Width="8*" /> <ColumnDefinition Width="8*" />
@@ -42,10 +48,11 @@
<RowDefinition Height="*" /> <RowDefinition Height="*" />
<RowDefinition Height="*" /> <RowDefinition Height="*" />
<RowDefinition Height="*" /> <RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Label Grid.Row="0" Grid.Column="0" Content="ID:" /> <Label Grid.Row="0" Grid.Column="0" Content="ID:" />
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding ID}" /> <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding ID}" IsReadOnly="True" Background="LightGray" />
<Label Grid.Row="1" Grid.Column="0" Content="Name:" /> <Label Grid.Row="1" Grid.Column="0" Content="Name:" />
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding NAME}" /> <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding NAME}" />
@@ -65,20 +72,21 @@
<Label Grid.Row="6" Grid.Column="0" Content="Port:" /> <Label Grid.Row="6" Grid.Column="0" Content="Port:" />
<TextBox Grid.Row="6" Grid.Column="1" Text="{Binding PORT}" /> <TextBox Grid.Row="6" Grid.Column="1" Text="{Binding PORT}" />
<Label Grid.Row="7" Grid.Column="0" Content="Notes:" /> <Label Grid.Row="7" Grid.Column="0" Content="Team ID:" />
<TextBox Grid.Row="7" Grid.Column="1" Text="{Binding NOTES}" /> <TextBox Grid.Row="7" Grid.Column="1" Text="{Binding MAINTAINER_ID}" />
<Label Grid.Row="8" Grid.Column="0" Content="Maintainer Team ID:" /> <Label Grid.Row="8" Grid.Column="0" Content="Notes:" />
<TextBox Grid.Row="8" Grid.Column="1" Text="{Binding MAINTAINER_ID}" /> <TextBox Grid.Row="8" Grid.Column="1" Text="{Binding NOTES}" />
</Grid> </Grid>
</StackPanel> </StackPanel>
</Border>
</DataTemplate> </DataTemplate>
</ListBox.ItemTemplate> </ListBox.ItemTemplate>
</ListBox> </ListBox>
<UniformGrid Rows="2" Grid.Row="1"> <UniformGrid Rows="2" Grid.Row="1">
<Button Content="Create new" Click="CreateNewService" />
<Button Content="Edit selected" Command="{Binding UpdateServiceCommand}"/> <Button Content="Edit selected" Command="{Binding UpdateServiceCommand}"/>
<Button Content="Create new" Click="CreateNewService" />
</UniformGrid> </UniformGrid>
</Grid> </Grid>
</Window> </Window>