整理代码

This commit is contained in:
ShrlAlgo
2025-10-10 11:19:58 +08:00
parent 4722a4c881
commit 9d40762f03
111 changed files with 3238 additions and 3112 deletions

View File

@@ -1,17 +1,18 @@
<ui:NeoWindow
Height="500"
MinHeight="300"
Title="墙饰面"
Width="250"
d:DataContext="{d:DesignInstance rvCivil:WallFinishesViewModel}"
mc:Ignorable="d"
x:Class="ShrlAlgoToolkit.RevitAddins.RvCivil.WallFinishesView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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"
xmlns:rvCivil="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvCivil"
xmlns:ui="https://github.com/ShrlAlgo/NeoUI"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
Title="墙饰面"
Width="250"
Height="500"
MinHeight="300"
d:DataContext="{d:DesignInstance rvCivil:WallFinishesViewModel}"
Icon="{DynamicResource RevitIcon}"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
@@ -24,45 +25,45 @@
Columns="*"
Rows="*,Auto,Auto,Auto,Auto">
<GroupBox
Header="饰面类型"
Height="300"
VerticalAlignment="Stretch">
VerticalAlignment="Stretch"
Header="饰面类型">
<ListBox
x:Name="CbbWallTypes"
DisplayMemberPath="Name"
ItemsSource="{Binding WallTypes}"
SelectedValue="{Binding SelectedWallType, UpdateSourceTrigger=PropertyChanged}"
x:Name="CbbWallTypes" />
SelectedValue="{Binding SelectedWallType, UpdateSourceTrigger=PropertyChanged}" />
</GroupBox>
<TextBox
x:Name="TbWallHeight"
Grid.Row="1"
InputMethod.IsInputMethodEnabled="False"
ui:InputAssist.Prefix="饰面总高度:"
ui:InputAssist.Suffix="mm"
Text="{Binding WallHeight, StringFormat=\{0:F2\}, UpdateSourceTrigger=PropertyChanged}"
x:Name="TbWallHeight" />
<TextBox
Grid.Row="2"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding WallHeight, StringFormat=\{0:F2\}, UpdateSourceTrigger=PropertyChanged}" />
<TextBox
x:Name="TbWallBase"
Grid.Row="2"
ui:InputAssist.Prefix="饰面底部离地高度:"
ui:InputAssist.Suffix="mm"
Text="{Binding WallBaseOffset, StringFormat=\{0:F2\}, UpdateSourceTrigger=PropertyChanged}"
x:Name="TbWallBase" />
InputMethod.IsInputMethodEnabled="False"
Text="{Binding WallBaseOffset, StringFormat=\{0:F2\}, UpdateSourceTrigger=PropertyChanged}" />
<ComboBox
x:Name="CbbPlaceType"
Grid.Row="3"
IsSynchronizedWithCurrentItem="True"
SelectedIndex="0"
Text="布置方式"
x:Name="CbbPlaceType">
Text="布置方式">
<ComboBoxItem Content="墙面" />
<ComboBoxItem Content="房间" />
<ComboBoxItem Content="整墙" />
</ComboBox>
<Button
Command="{Binding PlaceWallCommand}"
Content="布置"
x:Name="BtnPlace"
Grid.Row="4"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
x:Name="BtnPlace" />
Command="{Binding PlaceWallCommand}"
Content="布置" />
</ui:Grid>
</ui:NeoWindow>