This commit is contained in:
Wiesław Šoltés 2022-08-21 13:06:39 +02:00
Родитель c5d111626a
Коммит 0ef56743bd
1 изменённых файлов: 21 добавлений и 18 удалений

Просмотреть файл

@ -1,22 +1,25 @@
<UserControl x:Class="ReactiveHistorySample.Views.LineShapeView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid ColumnDefinitions="Auto,*" RowDefinitions="Auto,Auto,Auto,Auto">
<TextBlock Grid.Column="0" Grid.Row="0" Text="Name" VerticalAlignment="Center"/>
<TextBox Grid.Column="1" Grid.Row="0" Text="{Binding Name.Value}" VerticalAlignment="Center"/>
<TabControl Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1">
<TabItem Header="Start">
<ContentControl Content="{Binding Start.Value}"/>
</TabItem>
<TabItem Header="End">
<ContentControl Content="{Binding End.Value}"/>
</TabItem>
</TabControl>
<Button Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2" Content="Delete" Command="{Binding DeleteCommand}"/>
<Grid Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="3" ColumnDefinitions="*,*,*">
<Button Grid.Column="0" Content="Undo" Command="{Binding UndoCommand}"/>
<Button Grid.Column="1" Content="Clear" Command="{Binding ClearCommand}"/>
<Button Grid.Column="2" Content="Redo" Command="{Binding RedoCommand}"/>
</Grid>
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="250" d:DesignHeight="450">
<Grid ColumnDefinitions="Auto,*" RowDefinitions="Auto,Auto,Auto,Auto">
<TextBlock Grid.Column="0" Grid.Row="0" Text="Name" VerticalAlignment="Center" />
<TextBox Grid.Column="1" Grid.Row="0" Text="{Binding Name.Value}" VerticalAlignment="Center" />
<TabControl Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1">
<TabItem Header="Start">
<ContentControl Content="{Binding Start.Value}" />
</TabItem>
<TabItem Header="End">
<ContentControl Content="{Binding End.Value}" />
</TabItem>
</TabControl>
<Button Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2" Content="Delete" Command="{Binding DeleteCommand}" />
<Grid Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="3" ColumnDefinitions="*,*,*">
<Button Grid.Column="0" Content="Undo" Command="{Binding UndoCommand}" />
<Button Grid.Column="1" Content="Clear" Command="{Binding ClearCommand}" />
<Button Grid.Column="2" Content="Redo" Command="{Binding RedoCommand}" />
</Grid>
</Grid>
</UserControl>