添加项目文件。
This commit is contained in:
69
Szmedi.RvKits/Civil/FloorFinishesWin.xaml
Normal file
69
Szmedi.RvKits/Civil/FloorFinishesWin.xaml
Normal file
@@ -0,0 +1,69 @@
|
||||
<controls:MaterialWindow
|
||||
x:Class="Szmedi.RvKits.Civil.FloorFinishesWin"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:Szmedi.RvKits.Controls"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:rvCivil="clr-namespace:Szmedi.RvKits.Civil"
|
||||
Title="房间饰面"
|
||||
Width="250"
|
||||
Height="500"
|
||||
MinWidth="250"
|
||||
MinHeight="400"
|
||||
d:DataContext="{d:DesignInstance Type=rvCivil:FloorFinishesViewModel}"
|
||||
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<GroupBox Header="范围">
|
||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
|
||||
<RadioButton Content="所有房间" IsChecked="{Binding RbAllRooms}" />
|
||||
<RadioButton Content="选中房间" IsChecked="{Binding RbAllRooms, Converter={x:Static md:InvertBooleanConverter.Instance}}" />
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<GroupBox Grid.Row="1" VerticalAlignment="Stretch" Header="楼板类型">
|
||||
<ListBox
|
||||
x:Name="LbFloorType"
|
||||
VerticalAlignment="Stretch"
|
||||
DisplayMemberPath="Name"
|
||||
ItemsSource="{Binding FloorTypes}"
|
||||
SelectedValue="{Binding SelectedFloorType, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</GroupBox>
|
||||
<TextBox
|
||||
Grid.Row="2"
|
||||
md:HintAssist.Hint="楼板偏移"
|
||||
md:TextFieldAssist.SuffixText="mm"
|
||||
InputMethod.IsInputMethodEnabled="False"
|
||||
Text="{Binding FloorOffset, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:N2}}" />
|
||||
<!--<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.ValidationRules" ValidatesOnTargetUpdated = "True" />
|
||||
</Binding.ValidationRules>
|
||||
</Binding>
|
||||
</TextBox.Text>
|
||||
</TextBox>-->
|
||||
<Button Grid.Row="3" Command="{Binding PlaceFloorCommand}" Content="布置" />
|
||||
</Grid>
|
||||
</controls:MaterialWindow>
|
||||
Reference in New Issue
Block a user