Update MainView.axaml
This commit is contained in:
Родитель
0ef56743bd
Коммит
889d867d29
|
@ -5,7 +5,7 @@
|
|||
xmlns:controls="clr-namespace:ReactiveHistorySample.Controls"
|
||||
xmlns:views="clr-namespace:ReactiveHistorySample.Views"
|
||||
xmlns:vm="clr-namespace:ReactiveHistorySample.ViewModels"
|
||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||
mc:Ignorable="d" d:DesignWidth="1100" d:DesignHeight="450"
|
||||
x:Class="ReactiveHistorySample.Views.MainView">
|
||||
<UserControl.DataTemplates>
|
||||
<DataTemplate DataType="vm:PointShapeViewModel">
|
||||
|
@ -15,7 +15,7 @@
|
|||
<views:LineShapeView />
|
||||
</DataTemplate>
|
||||
</UserControl.DataTemplates>
|
||||
<Grid Margin="4" ColumnDefinitions="150,150,*" RowDefinitions="Auto,*">
|
||||
<Grid Margin="4" ColumnDefinitions="180,200,*" RowDefinitions="Auto,*">
|
||||
<Grid Grid.Column="0" Grid.Row="0" ColumnDefinitions="*,*,*">
|
||||
<Button Grid.Column="0" Content="Undo" Command="{Binding UndoCommand}" />
|
||||
<Button Grid.Column="1" Content="Clear" Command="{Binding ClearCommand}" />
|
||||
|
@ -28,8 +28,11 @@
|
|||
</DataTemplate>
|
||||
</ListBox.DataTemplates>
|
||||
</ListBox>
|
||||
<ContentControl Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Content="{Binding #shapes.SelectedItem, Mode=OneWay}" HorizontalContentAlignment="Stretch"/>
|
||||
<controls:LayerCanvas Grid.Column="2" Grid.Row="0" Grid.RowSpan="2" Name="layerCanvas" Background="LightGray" Width="600" Height="500"/>
|
||||
<ContentControl Grid.Column="1" Grid.Row="0" Grid.RowSpan="2"
|
||||
Content="{Binding #shapes.SelectedItem, Mode=OneWay}"
|
||||
HorizontalContentAlignment="Stretch" />
|
||||
<controls:LayerCanvas Grid.Column="2" Grid.Row="0" Grid.RowSpan="2"
|
||||
Name="layerCanvas" Background="LightGray"
|
||||
Width="600" Height="500" />
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче