Add entity id to grid views

This commit is contained in:
Brant Martin
2018-03-16 05:54:43 -04:00
committed by John Gross
parent 2751eaf399
commit 83056bacf4

View File

@@ -1,4 +1,4 @@
<UserControl x:Class="Torch.Server.Views.Entities.GridView"
<UserControl x:Class="Torch.Server.Views.Entities.GridView"
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"
@@ -11,6 +11,7 @@
</UserControl.DataContext>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
@@ -23,7 +24,11 @@
<Label Content="Position" Width="100"/>
<TextBox Text="{Binding Position}" Margin="3" />
</StackPanel>
<ScrollViewer Grid.Row="2" Margin="3" VerticalScrollBarVisibility="Auto">
<StackPanel Grid.Row="2" Orientation="Horizontal">
<Label Content="EntityID" Width="100"/>
<TextBox Text="{Binding Id}" Margin="3" />
</StackPanel>
<ScrollViewer Grid.Row="3" Margin="3" VerticalScrollBarVisibility="Auto">
<local:EntityControlsView DataContext="{Binding}"/>
</ScrollViewer>
</Grid>