89 lines
2.9 KiB
XML
89 lines
2.9 KiB
XML
<Window
|
|
x:Class="Pf2e.WPF.EntityViewer.EntityForm"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:component="clr-namespace:Pf2e.WPF.EntityViewer.Component"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:viewmodel="clr-namespace:Pf2e.WPF.EntityViewer.ViewModel"
|
|
Title="EntityForm"
|
|
Width="1400"
|
|
Height="800"
|
|
d:DataContext="{d:DesignInstance Type=viewmodel:EntityFormViewModel}"
|
|
x:ClassModifier="internal"
|
|
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
|
|
Loaded="Window_Loaded"
|
|
mc:Ignorable="d">
|
|
<Grid ClipToBounds="True">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="25" />
|
|
<RowDefinition Height="150" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="215*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="537*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="322*" />
|
|
</Grid.ColumnDefinitions>
|
|
<GridSplitter
|
|
Grid.Row="0"
|
|
Grid.RowSpan="4"
|
|
Grid.Column="1"
|
|
Width="5"
|
|
HorizontalAlignment="Stretch" />
|
|
<GridSplitter
|
|
Grid.Row="0"
|
|
Grid.RowSpan="4"
|
|
Grid.Column="3"
|
|
Width="5"
|
|
HorizontalAlignment="Stretch" />
|
|
<GridSplitter
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Height="5"
|
|
HorizontalAlignment="Stretch"
|
|
Cursor="SizeNS"
|
|
ResizeDirection="Rows" />
|
|
|
|
<Button
|
|
Margin="3,4,3,0"
|
|
Click="Button_Click"
|
|
Content="<<< Вернуться в начало" />
|
|
|
|
<ListBox
|
|
x:Name="EntityTypeListBox"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3,3,3,0"
|
|
d:ItemsSource="{d:SampleData ItemCount=10}"
|
|
ItemsSource="{Binding EntityTypes}"
|
|
SelectedItem="{Binding SelectedEntityType}" />
|
|
|
|
<component:EntityListControl
|
|
x:Name="EntityListControl"
|
|
Grid.Row="2"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
ClipToBounds="True" />
|
|
|
|
<component:ViewControl
|
|
x:Name="ViewControl"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="4"
|
|
Grid.Column="2"
|
|
FontFamily="Consolas" />
|
|
|
|
<TextBox
|
|
Grid.Row="0"
|
|
Grid.RowSpan="4"
|
|
Grid.Column="4"
|
|
IsReadOnly="True"
|
|
Text="{Binding SelectedEntityDescription, Mode=OneWay}"
|
|
TextWrapping="Wrap" />
|
|
</Grid>
|
|
</Window>
|