Files
Shrlalgo.RvKits/ShrlAlgoToolkit.RevitAddins/RvCivil/WallFinishesView.xaml

68 lines
2.6 KiB
Plaintext
Raw Normal View History

<ui:FluentWindowEx
2025-04-24 20:56:44 +08:00
Height="500"
MinHeight="300"
Title="墙饰面"
Width="250"
d:DataContext="{d:DesignInstance rvCivil:WallFinishesViewModel}"
mc:Ignorable="d"
x:Class="ShrlAlgoToolkit.RevitAddins.RvCivil.WallFinishesView"
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"
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
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>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
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
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
2025-04-24 20:56:10 +08:00
<ui:AutoGrid
2024-09-22 11:05:41 +08:00
ChildMargin="5"
Columns="*"
Rows="*,Auto,Auto,Auto,Auto">
<GroupBox
2025-04-24 20:56:44 +08:00
Header="饰面类型"
2024-09-22 11:05:41 +08:00
Height="300"
2025-04-24 20:56:44 +08:00
VerticalAlignment="Stretch">
2024-09-22 11:05:41 +08:00
<ListBox
DisplayMemberPath="Name"
ItemsSource="{Binding WallTypes}"
2025-04-24 20:56:44 +08:00
SelectedValue="{Binding SelectedWallType, UpdateSourceTrigger=PropertyChanged}"
x:Name="CbbWallTypes" />
2024-09-22 11:05:41 +08:00
</GroupBox>
<ui:TextBoxEx
2024-09-22 11:05:41 +08:00
Grid.Row="1"
InputMethod.IsInputMethodEnabled="False"
Prefix="饰面总高度:"
Suffix="mm"
2025-04-24 20:56:44 +08:00
Text="{Binding WallHeight, StringFormat=\{0:F2\}, UpdateSourceTrigger=PropertyChanged}"
x:Name="TbWallHeight" />
<ui:TextBoxEx
2024-09-22 11:05:41 +08:00
Grid.Row="2"
InputMethod.IsInputMethodEnabled="False"
Prefix="饰面底部离地高度:"
Suffix="mm"
2025-04-24 20:56:44 +08:00
Text="{Binding WallBaseOffset, StringFormat=\{0:F2\}, UpdateSourceTrigger=PropertyChanged}"
x:Name="TbWallBase" />
2024-09-22 11:05:41 +08:00
<ComboBox
Grid.Row="3"
IsSynchronizedWithCurrentItem="True"
SelectedIndex="0"
2025-04-24 20:56:44 +08:00
Text="布置方式"
x:Name="CbbPlaceType">
2024-09-22 11:05:41 +08:00
<ComboBoxItem Content="墙面" />
<ComboBoxItem Content="房间" />
<ComboBoxItem Content="整墙" />
</ComboBox>
<Button
2025-04-24 20:56:44 +08:00
Command="{Binding PlaceWallCommand}"
Content="布置"
2024-09-22 11:05:41 +08:00
Grid.Row="4"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
2025-04-24 20:56:44 +08:00
x:Name="BtnPlace" />
2025-04-24 20:56:10 +08:00
</ui:AutoGrid>
</ui:FluentWindowEx>