调整代码

This commit is contained in:
GG Z
2026-02-22 20:03:42 +08:00
parent 2ad3d0fde0
commit 7e2d5be3cd
258 changed files with 2916 additions and 5013 deletions

View File

@@ -0,0 +1,69 @@
<ms:MelWindow
x:Class="ShrlAlgoToolkit.RevitAddins.RvCivil.BricksFinishesView"
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:ms="https://github.com/ShrlAlgo/Melskin"
Title="铺贴"
Width="180"
Height="500"
MinHeight="500"
d:DataContext="{d:DesignInstance rvCivil:BricksFinishesViewModel}"
Icon="{DynamicResource RevitIcon}"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
</Window.Resources>
<ms:Grid ChildMargin="5" Columns="*">
<TextBox
x:Name="TbPavementLength"
ms:InputAssist.Prefix="砖长:"
ms:InputAssist.Suffix="mm"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding PavementLength, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<TextBox
x:Name="TbPavementWidth"
ms:InputAssist.Prefix="砖宽:"
ms:InputAssist.Suffix="mm"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding PavementWidth, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<TextBox
x:Name="TbPavementGap"
ms:InputAssist.Prefix="砖缝:"
ms:InputAssist.Suffix="mm"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding PavementGap, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<TextBox
x:Name="TbPavementThickness"
ms:InputAssist.Prefix="砖厚:"
ms:InputAssist.Suffix="mm"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding PavementThickness, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<TextBox
x:Name="TbPavementBaseOffset"
ms:InputAssist.Prefix="墙砖底标高:"
ms:InputAssist.Suffix="mm"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding WallBaseOffset, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<TextBox
x:Name="TbPavementName"
ms:InputAssist.Prefix="铺砖名(类型名)"
Text="{Binding PanelName, UpdateSourceTrigger=PropertyChanged}" />
<GroupBox Grid.Row="1" Header="铺设方式">
<UniformGrid Rows="1">
<RadioButton Content="房间" IsChecked="{Binding ByRoom, UpdateSourceTrigger=PropertyChanged}" />
<RadioButton Content="平面"
IsChecked="{Binding ByRoom, Converter={x:Static ms:InvertBooleanConverter.Instance}}" />
</UniformGrid>
</GroupBox>
<CheckBox Content="边界留缝" IsChecked="{Binding IsEdgeExistGap, UpdateSourceTrigger=PropertyChanged}" />
<Button
x:Name="BtnByFace"
HorizontalAlignment="Stretch"
Command="{Binding PlaceBricksCommand}"
Content="铺设"
IsEnabled="{Binding HasErrors, Mode=OneWay, Converter={x:Static ms:InvertBooleanConverter.Instance}, UpdateSourceTrigger=PropertyChanged}" />
</ms:Grid>
</ms:MelWindow>