Files
Shrlalgo.RvKits/ShrlAlgoToolkit.RevitAddins/RvCivil/WallFinishesView.xaml
2025-04-24 20:56:10 +08:00

69 lines
2.6 KiB
XML

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