Files
SzmediTools/Szmedi.RvKits/Civil/BricksFinishesWin.xaml

82 lines
3.8 KiB
Plaintext
Raw Permalink Normal View History

2025-09-16 16:06:41 +08:00
<controls:MaterialWindow
x:Class="Szmedi.RvKits.Civil.BricksFinishesWin"
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="300"
Height="370"
d:DataContext="{d:DesignInstance rvCivil:BricksFinishesViewModel}"
SizeToContent="Height"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<UniformGrid Columns="2">
<TextBox
x:Name="TbPavementLength"
md:HintAssist.Hint="砖长(mm)"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding PavementLength, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F2}}" />
<TextBox
x:Name="TbPavementWidth"
md:HintAssist.Hint="砖宽(mm)"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding PavementWidth, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F2}}" />
<TextBox
x:Name="TbPavementGap"
md:HintAssist.Hint="砖缝(mm)"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding PavementGap, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F2}}" />
<TextBox
x:Name="TbPavementThickness"
md:HintAssist.Hint="砖厚(mm)"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding PavementThickness, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F2}}" />
<TextBox
x:Name="TbPavementBaseOffset"
md:HintAssist.Hint="墙砖底标高(mm)"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding WallBaseOffset, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F2}}" />
<TextBox
x:Name="TbPavementName"
md:HintAssist.Hint="铺砖名称"
md:TextFieldAssist.PrefixText="类型名称"
Text="{Binding PanelName, UpdateSourceTrigger=PropertyChanged}" />
</UniformGrid>
<GroupBox Grid.Row="1" Header="铺设方式">
<UniformGrid Rows="1">
<RadioButton
HorizontalAlignment="Center"
Content="房间"
IsChecked="{Binding ByRoom, UpdateSourceTrigger=PropertyChanged}" />
<RadioButton
HorizontalAlignment="Center"
Content="平面"
IsChecked="{Binding ByRoom, Converter={x:Static md:InvertBooleanConverter.Instance}}" />
</UniformGrid>
</GroupBox>
<CheckBox
Grid.Row="2"
Content="边界留缝"
IsChecked="{Binding IsEdgeExistGap, UpdateSourceTrigger=PropertyChanged}" />
<Button
x:Name="BtnByFace"
Grid.Row="3"
HorizontalAlignment="Stretch"
Command="{Binding PlaceBricksCommand}"
Content="铺设"
IsEnabled="{Binding HasErrors, Mode=OneWay, Converter={x:Static md:InvertBooleanConverter.Instance}, UpdateSourceTrigger=PropertyChanged}" />
</Grid>
</controls:MaterialWindow>