整理代码
This commit is contained in:
78
ShrlAlgoToolkit.RevitAddins/RvCivil/FloorFinishesView.xaml
Normal file
78
ShrlAlgoToolkit.RevitAddins/RvCivil/FloorFinishesView.xaml
Normal file
@@ -0,0 +1,78 @@
|
||||
<ui:FluentWindowEx
|
||||
x:Class="ShrlAlgo.RvKits.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:ShrlAlgo.RvKits.RvCivil"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
||||
Title="房间饰面"
|
||||
Width="200"
|
||||
Height="500"
|
||||
MinWidth="275"
|
||||
MinHeight="500"
|
||||
d:DataContext="{d:DesignInstance Type=rvCivil:FloorFinishesViewModel}"
|
||||
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
|
||||
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
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">
|
||||
<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>
|
||||
<ui:TextBox
|
||||
Grid.Row="2"
|
||||
InputMethod.IsInputMethodEnabled="False"
|
||||
PlaceholderText="楼板偏移"
|
||||
Text="{Binding FloorOffset, StringFormat=\{0:N2\}, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<!--<TextBox
|
||||
Grid.Row="2"
|
||||
InputMethod.IsInputMethodEnabled="False"
|
||||
md:HintAssist.Hint="楼板偏移"
|
||||
md:TextFieldAssist.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>-->
|
||||
<ui:Button
|
||||
Grid.Row="3"
|
||||
HorizontalAlignment="Stretch"
|
||||
Command="{Binding PlaceFloorCommand}"
|
||||
Content="布置"
|
||||
Icon="{ui:FontIcon Glyph=,
|
||||
FontFamily={StaticResource BoxIcons}}" />
|
||||
</ui:AutoGrid>
|
||||
</ui:FluentWindowEx>
|
||||
Reference in New Issue
Block a user