68 lines
2.6 KiB
XML
68 lines
2.6 KiB
XML
<ui:FluentWindowEx
|
|
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: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/WPFluent"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<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
|
|
Header="饰面类型"
|
|
Height="300"
|
|
VerticalAlignment="Stretch">
|
|
<ListBox
|
|
DisplayMemberPath="Name"
|
|
ItemsSource="{Binding WallTypes}"
|
|
SelectedValue="{Binding SelectedWallType, UpdateSourceTrigger=PropertyChanged}"
|
|
x:Name="CbbWallTypes" />
|
|
</GroupBox>
|
|
<ui:TextBoxEx
|
|
Grid.Row="1"
|
|
InputMethod.IsInputMethodEnabled="False"
|
|
Prefix="饰面总高度:"
|
|
Suffix="mm"
|
|
Text="{Binding WallHeight, StringFormat=\{0:F2\}, UpdateSourceTrigger=PropertyChanged}"
|
|
x:Name="TbWallHeight" />
|
|
<ui:TextBoxEx
|
|
Grid.Row="2"
|
|
InputMethod.IsInputMethodEnabled="False"
|
|
Prefix="饰面底部离地高度:"
|
|
Suffix="mm"
|
|
Text="{Binding WallBaseOffset, StringFormat=\{0:F2\}, UpdateSourceTrigger=PropertyChanged}"
|
|
x:Name="TbWallBase" />
|
|
<ComboBox
|
|
Grid.Row="3"
|
|
IsSynchronizedWithCurrentItem="True"
|
|
SelectedIndex="0"
|
|
Text="布置方式"
|
|
x:Name="CbbPlaceType">
|
|
<ComboBoxItem Content="墙面" />
|
|
<ComboBoxItem Content="房间" />
|
|
<ComboBoxItem Content="整墙" />
|
|
</ComboBox>
|
|
<Button
|
|
Command="{Binding PlaceWallCommand}"
|
|
Content="布置"
|
|
Grid.Row="4"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
x:Name="BtnPlace" />
|
|
</ui:AutoGrid>
|
|
</ui:FluentWindowEx> |