Files
SzmediTools/Szmedi.RvKits/Civil/ArchiLayoutWin.xaml

285 lines
11 KiB
Plaintext
Raw Normal View History

2025-09-16 16:06:41 +08:00
<controls:MaterialWindow
x:Class="Szmedi.RvKits.Civil.ArchiLayoutWin"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:civil="clr-namespace:Szmedi.RvKits.Civil"
xmlns:controls="clr-namespace:Szmedi.RvKits.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="布局设置"
Width="800"
Height="450"
d:DataContext="{d:DesignInstance Type=civil:ArchiLayoutViewModel}"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
</Window.Resources>
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition Height="0.2*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<RadioButton Grid.Row="0" Grid.Column="0">
<Canvas>
<Border
Canvas.Left="0"
Canvas.Top="-50"
Canvas.Right="0"
Canvas.Bottom="0"
Width="150"
Height="100"
HorizontalAlignment="Center"
VerticalAlignment="Top"
BorderBrush="Red"
BorderThickness="1" />
<Rectangle
Canvas.Left="0"
Canvas.Top="-50"
Width="10"
Height="50"
Fill="SeaGreen" />
<Rectangle
Canvas.Left="10"
Canvas.Top="-15"
Width="15"
Height="15"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Fill="Orange" />
<Rectangle
Canvas.Left="100"
Canvas.Top="-50"
Width="50"
Height="50"
Fill="HotPink" />
<Polygon Fill="SteelBlue" Points="150,0 0,0 0,50 150,50 150,40 10,40 10,10 150,10" />
</Canvas>
</RadioButton>
<RadioButton Grid.Row="0" Grid.Column="1">
<Canvas>
<Border
Canvas.Left="0"
Canvas.Top="-50"
Canvas.Right="0"
Canvas.Bottom="0"
Width="150"
Height="100"
HorizontalAlignment="Center"
VerticalAlignment="Top"
BorderBrush="Red"
BorderThickness="1" />
<Rectangle
Canvas.Left="0"
Canvas.Top="0"
Width="10"
Height="50"
Fill="SeaGreen" />
<Rectangle
Canvas.Left="10"
Canvas.Top="0"
Width="15"
Height="15"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Fill="Orange" />
<Rectangle
Canvas.Left="100"
Width="50"
Height="50"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Fill="HotPink" />
<Polygon Fill="SteelBlue" Points="150,0 0,0 0,-50 150,-50 150,-40 10,-40 10,-10 150,-10" />
</Canvas>
</RadioButton>
<RadioButton Grid.Row="1" Grid.Column="0">
<Canvas>
<Border
Canvas.Left="0"
Canvas.Top="-50"
Canvas.Right="0"
Canvas.Bottom="0"
Width="150"
Height="100"
HorizontalAlignment="Center"
VerticalAlignment="Top"
BorderBrush="Red"
BorderThickness="1" />
<Rectangle
Canvas.Left="0"
Canvas.Top="-50"
Width="10"
Height="30"
Fill="SeaGreen" />
<Rectangle
Canvas.Left="10"
Canvas.Top="-35"
Width="15"
Height="15"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Fill="Orange" />
<Rectangle
Canvas.Left="100"
Canvas.Top="-10"
Width="50"
Height="50"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Fill="HotPink" />
<Polygon
Canvas.Left="0"
Canvas.Top="0"
Fill="SteelBlue"
Points="150,-20 0,-20 0,50 150,50 150,40 10,40 10,-10 150,-10" />
</Canvas>
</RadioButton>
<RadioButton Grid.Row="1" Grid.Column="1">
<Canvas>
<Border
Canvas.Left="0"
Canvas.Top="-50"
Canvas.Right="0"
Canvas.Bottom="0"
Width="150"
Height="100"
HorizontalAlignment="Center"
VerticalAlignment="Top"
BorderBrush="Red"
BorderThickness="1" />
<Rectangle
Canvas.Left="0"
Canvas.Top="20"
Width="10"
Height="30"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Fill="SeaGreen" />
<Rectangle
Canvas.Left="10"
Canvas.Top="20"
Width="15"
Height="15"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Fill="Orange" />
<Rectangle
Canvas.Left="100"
Canvas.Top="-40"
Width="50"
Height="50"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Fill="HotPink" />
<Polygon Fill="SteelBlue" Points="150,20 0,20 0,-50 150,-50 150,-40 10,-40 10,10 150,10" />
</Canvas>
</RadioButton>
<Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
<Rectangle Width="15" Height="15" Fill="Orange" />
<TextBlock VerticalAlignment="Center" Text="疏散楼梯" />
<Rectangle Width="15" Height="15" Fill="SeaGreen" />
<TextBlock VerticalAlignment="Center" Text="疏散楼梯" />
<Rectangle Width="15" Height="15" Fill="HotPink" />
<TextBlock VerticalAlignment="Center" Text="车控室组团" />
<Rectangle Width="15" Height="15" Fill="SteelBlue" />
<TextBlock VerticalAlignment="Center" Text="走道" />
</StackPanel>
</Grid>
</Grid>
<GroupBox
Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="0"
Header="预览图">
<!--<Canvas>
<Border>
<Rectangle
Width="30"
Height="60"
Fill="Blue"
StrokeThickness="1" />
</Border>
<Line
Canvas.Left="100"
Canvas.Top="100"
Stroke="Orange"
StrokeEndLineCap="Triangle"
StrokeStartLineCap="Round"
StrokeThickness="20"
X1="0"
X2="500"
Y1="0"
Y2="0" />
<Rectangle
Canvas.Left="100"
Canvas.Top="150"
Width="500"
Height="100"
Fill="LightGreen"
RadiusX="10"
RadiusY="10"
Stroke="Green"
StrokeDashArray="4"
StrokeDashCap="Round"
StrokeThickness="10" />
<Ellipse
Canvas.Left="100"
Canvas.Top="300"
Width="100"
Height="100"
Fill="LightBlue"
Stroke="Blue"
StrokeDashArray="2"
StrokeThickness="10" />
<Polyline
Canvas.Left="250"
Canvas.Top="300"
Points="0,50 20,20 40,100 100,0"
Stroke="Pink"
StrokeEndLineCap="Round"
StrokeLineJoin="Round"
StrokeThickness="10" />
<Polygon
Canvas.Left="400"
Canvas.Top="300"
Fill="LightGray"
Points="0,50 20,20 40,100 100,0"
Stroke="DimGray"
StrokeLineJoin="Round"
StrokeThickness="5" />
</Canvas>-->
</GroupBox>
<StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal">
<CheckBox Margin="5" Content="换乘站" />
<Button
Margin="5"
HorizontalAlignment="Center"
Content="选择房间区域"
Cursor="Hand" />
<Button
Margin="5"
HorizontalAlignment="Center"
Command="{Binding SetRoomData}"
Content="设置"
Cursor="Hand" />
<Button Margin="5" HorizontalAlignment="Center" Content="布置" />
</StackPanel>
</Grid>
</controls:MaterialWindow>