82 lines
3.4 KiB
XML
82 lines
3.4 KiB
XML
<ui:NeoWindow
|
|
x:Class="ShrlAlgoToolkit.RevitAddins.RvCivil.FloorFinishesView"
|
|
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:ui="https://github.com/ShrlAlgo/NeoUI"
|
|
Title="房间饰面"
|
|
Width="200"
|
|
Height="500"
|
|
MinWidth="275"
|
|
MinHeight="500"
|
|
d:DataContext="{d:DesignInstance Type=rvCivil:FloorFinishesViewModel}"
|
|
Icon="{DynamicResource RevitIcon}"
|
|
mc:Ignorable="d">
|
|
<Window.Resources>
|
|
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
|
<!--<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>-->
|
|
</Window.Resources>
|
|
<ui:Grid
|
|
ChildMargin="5"
|
|
Columns="*"
|
|
Rows="Auto,*,Auto,Auto">
|
|
<GroupBox Header="范围">
|
|
<UniformGrid Rows="1">
|
|
<RadioButton Content="所有房间" IsChecked="{Binding RbAllRooms}" />
|
|
<RadioButton Content="选中房间" IsChecked="{Binding RbAllRooms, Converter={StaticResource InvertBooleanConverter}}" />
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
<GroupBox
|
|
Grid.Row="1"
|
|
VerticalAlignment="Stretch"
|
|
Header="楼板类型">
|
|
<ListBox
|
|
x:Name="LbFloorType"
|
|
DisplayMemberPath="Name"
|
|
ItemsSource="{Binding FloorTypes}"
|
|
SelectedValue="{Binding SelectedFloorType, UpdateSourceTrigger=PropertyChanged}" />
|
|
</GroupBox>
|
|
<TextBox
|
|
Grid.Row="2"
|
|
ui:InputAssist.Placeholder="楼板偏移"
|
|
InputMethod.IsInputMethodEnabled="False"
|
|
Text="{Binding FloorOffset, StringFormat={}{0:N2}, UpdateSourceTrigger=PropertyChanged}" />
|
|
<!--<TextBox
|
|
Grid.Row="2"
|
|
InputMethod.IsInputMethodEnabled="False"
|
|
md:HintAssist.Hint="楼板偏移"
|
|
md:TextFieldAssist.ui:InputAssist.SuffixText="mm">
|
|
<TextBox.Text>
|
|
<Binding
|
|
Path="FloorOffset"
|
|
StringFormat="{}{0:N2}"
|
|
UpdateSourceTrigger="PropertyChanged">
|
|
-->
|
|
<!-- 可以修改值转换异常的提示“未能转换值”,前端验证 -->
|
|
<!--
|
|
<Binding.ValidationRules>
|
|
<domain:RangeValidationRule Max="100" Min="0" xmlns:domain="clr-namespace:Sai.Toolkit.Mvvm.ValidationRules" ValidatesOnTargetUpdated = "True" />
|
|
</Binding.ValidationRules>
|
|
</Binding>
|
|
</TextBox.Text>
|
|
</TextBox>-->
|
|
<Button
|
|
Grid.Row="3"
|
|
HorizontalAlignment="Stretch"
|
|
ui:ButtonAssist.Icon="{ui:Icon Glyph=,
|
|
FontFamily={StaticResource BoxIcons},
|
|
Size=16}"
|
|
Command="{Binding PlaceFloorCommand}"
|
|
Content="布置" />
|
|
<!--<ui:ButtonAssist.Icon>
|
|
<ui:IconElement />
|
|
</ui:ButtonAssist.Icon>-->
|
|
|
|
|
|
</ui:Grid>
|
|
</ui:NeoWindow> |