调整代码
This commit is contained in:
69
ShrlAlgoToolkit.RevitAddins/ArchStru/WallFinishesView.xaml
Normal file
69
ShrlAlgoToolkit.RevitAddins/ArchStru/WallFinishesView.xaml
Normal file
@@ -0,0 +1,69 @@
|
||||
<ms:MelWindow
|
||||
x:Class="ShrlAlgoToolkit.RevitAddins.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:ShrlAlgoToolkit.RevitAddins.RvCivil"
|
||||
xmlns:ms="https://github.com/ShrlAlgo/Melskin"
|
||||
Title="墙饰面"
|
||||
Width="250"
|
||||
Height="500"
|
||||
MinHeight="300"
|
||||
d:DataContext="{d:DesignInstance rvCivil:WallFinishesViewModel}"
|
||||
Icon="{DynamicResource RevitIcon}"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
<ms:Grid
|
||||
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>
|
||||
<TextBox
|
||||
x:Name="TbWallHeight"
|
||||
Grid.Row="1"
|
||||
ms:InputAssist.Prefix="饰面总高度:"
|
||||
ms:InputAssist.Suffix="mm"
|
||||
InputMethod.IsInputMethodEnabled="False"
|
||||
Text="{Binding WallHeight, StringFormat=\{0:F2\}, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox
|
||||
x:Name="TbWallBase"
|
||||
Grid.Row="2"
|
||||
ms:InputAssist.Prefix="饰面底部离地高度:"
|
||||
ms:InputAssist.Suffix="mm"
|
||||
InputMethod.IsInputMethodEnabled="False"
|
||||
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="布置" />
|
||||
</ms:Grid>
|
||||
</ms:MelWindow>
|
||||
Reference in New Issue
Block a user