2025-08-20 12:10:35 +08:00
|
|
|
|
<ui:NeoWindow
|
2025-04-24 20:56:44 +08:00
|
|
|
|
Height="500"
|
|
|
|
|
|
MinHeight="500"
|
|
|
|
|
|
Title="铺贴"
|
|
|
|
|
|
Width="180"
|
|
|
|
|
|
d:DataContext="{d:DesignInstance rvCivil:BricksFinishesViewModel}"
|
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
|
x:Class="ShrlAlgoToolkit.RevitAddins.RvCivil.BricksFinishesView"
|
2024-09-22 11:05:41 +08:00
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2025-04-24 20:56:44 +08:00
|
|
|
|
xmlns:rvCivil="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvCivil"
|
2025-08-20 12:10:35 +08:00
|
|
|
|
xmlns:ui="https://github.com/ShrlAlgo/NeoUI"
|
2025-04-24 20:56:44 +08:00
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
2024-09-22 11:05:41 +08:00
|
|
|
|
<Window.Resources>
|
2025-04-24 20:56:10 +08:00
|
|
|
|
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
2024-09-22 11:05:41 +08:00
|
|
|
|
</Window.Resources>
|
2025-08-20 12:10:35 +08:00
|
|
|
|
<ui:Grid ChildMargin="5" Columns="*">
|
|
|
|
|
|
<TextBox
|
2024-09-22 11:05:41 +08:00
|
|
|
|
InputMethod.IsInputMethodEnabled="False"
|
2025-08-20 12:10:35 +08:00
|
|
|
|
ui:InputAssist.Prefix="砖长:"
|
|
|
|
|
|
ui:InputAssist.Suffix="mm"
|
2025-04-24 20:56:44 +08:00
|
|
|
|
Text="{Binding PavementLength, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
|
x:Name="TbPavementLength" />
|
2025-08-20 12:10:35 +08:00
|
|
|
|
<TextBox
|
2024-09-22 11:05:41 +08:00
|
|
|
|
InputMethod.IsInputMethodEnabled="False"
|
2025-08-20 12:10:35 +08:00
|
|
|
|
ui:InputAssist.Prefix="砖宽:"
|
|
|
|
|
|
ui:InputAssist.Suffix="mm"
|
2025-04-24 20:56:44 +08:00
|
|
|
|
Text="{Binding PavementWidth, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
|
x:Name="TbPavementWidth" />
|
2025-08-20 12:10:35 +08:00
|
|
|
|
<TextBox
|
2024-09-22 11:05:41 +08:00
|
|
|
|
InputMethod.IsInputMethodEnabled="False"
|
2025-08-20 12:10:35 +08:00
|
|
|
|
ui:InputAssist.Prefix="砖缝:"
|
|
|
|
|
|
ui:InputAssist.Suffix="mm"
|
2025-04-24 20:56:44 +08:00
|
|
|
|
Text="{Binding PavementGap, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
|
x:Name="TbPavementGap" />
|
2025-08-20 12:10:35 +08:00
|
|
|
|
<TextBox
|
2024-09-22 11:05:41 +08:00
|
|
|
|
InputMethod.IsInputMethodEnabled="False"
|
2025-08-20 12:10:35 +08:00
|
|
|
|
ui:InputAssist.Prefix="砖厚:"
|
|
|
|
|
|
ui:InputAssist.Suffix="mm"
|
2025-04-24 20:56:44 +08:00
|
|
|
|
Text="{Binding PavementThickness, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
|
x:Name="TbPavementThickness" />
|
2025-08-20 12:10:35 +08:00
|
|
|
|
<TextBox
|
2024-09-22 11:05:41 +08:00
|
|
|
|
InputMethod.IsInputMethodEnabled="False"
|
2025-08-20 12:10:35 +08:00
|
|
|
|
ui:InputAssist.Prefix="墙砖底标高:"
|
|
|
|
|
|
ui:InputAssist.Suffix="mm"
|
2025-04-24 20:56:44 +08:00
|
|
|
|
Text="{Binding WallBaseOffset, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
|
x:Name="TbPavementBaseOffset" />
|
2025-08-20 12:10:35 +08:00
|
|
|
|
<TextBox
|
|
|
|
|
|
ui:InputAssist.Prefix="铺砖名(类型名):"
|
2025-04-24 20:56:44 +08:00
|
|
|
|
Text="{Binding PanelName, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
|
x:Name="TbPavementName" />
|
2024-09-22 11:05:41 +08:00
|
|
|
|
<GroupBox Grid.Row="1" Header="铺设方式">
|
|
|
|
|
|
<UniformGrid Rows="1">
|
|
|
|
|
|
<RadioButton Content="房间" IsChecked="{Binding ByRoom, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
|
|
<RadioButton Content="平面" IsChecked="{Binding ByRoom, Converter={StaticResource InvertBooleanConverter}}" />
|
|
|
|
|
|
</UniformGrid>
|
|
|
|
|
|
</GroupBox>
|
|
|
|
|
|
<CheckBox Content="边界留缝" IsChecked="{Binding IsEdgeExistGap, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
|
|
<Button
|
|
|
|
|
|
Command="{Binding PlaceBricksCommand}"
|
|
|
|
|
|
Content="铺设"
|
2025-04-24 20:56:44 +08:00
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
|
|
IsEnabled="{Binding HasErrors, Mode=OneWay, Converter={StaticResource InvertBooleanConverter}, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
|
x:Name="BtnByFace" />
|
2025-08-20 12:10:35 +08:00
|
|
|
|
</ui:Grid>
|
|
|
|
|
|
</ui:NeoWindow>
|