Files
ShrlAlgoToolkit/Sai.RvKits/RvCivil/BricksFinishesView.xaml
2024-09-22 11:05:41 +08:00

68 lines
3.2 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<ex:FluentWindowEx
x:Class="Sai.RvKits.RvCivil.BricksFinishesView"
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:ex="https://github.com/sherlockforrest/Wpf.Ui.Extend"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:rvCivil="clr-namespace:Sai.RvKits.RvCivil"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
Title="铺贴"
Width="180"
Height="500"
MinHeight="500"
d:DataContext="{d:DesignInstance rvCivil:BricksFinishesViewModel}"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/Sai.RvKits;component/WPFUI.xaml" />
</Window.Resources>
<ex:AutoGrid ChildMargin="5" Columns="*">
<ex:TextBoxEx
x:Name="TbPavementLength"
InputMethod.IsInputMethodEnabled="False"
Prefix="砖长:"
Suffix="mm"
Text="{Binding PavementLength, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<ex:TextBoxEx
x:Name="TbPavementWidth"
InputMethod.IsInputMethodEnabled="False"
Prefix="砖宽:"
Suffix="mm"
Text="{Binding PavementWidth, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<ex:TextBoxEx
x:Name="TbPavementGap"
InputMethod.IsInputMethodEnabled="False"
Prefix="砖缝:"
Suffix="mm"
Text="{Binding PavementGap, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<ex:TextBoxEx
x:Name="TbPavementThickness"
InputMethod.IsInputMethodEnabled="False"
Prefix="砖厚:"
Suffix="mm"
Text="{Binding PavementThickness, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<ex:TextBoxEx
x:Name="TbPavementBaseOffset"
InputMethod.IsInputMethodEnabled="False"
Prefix="墙砖底标高:"
Suffix="mm"
Text="{Binding WallBaseOffset, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<ex:TextBoxEx
x:Name="TbPavementName"
Prefix="铺砖名(类型名)"
Text="{Binding PanelName, UpdateSourceTrigger=PropertyChanged}" />
<GroupBox Grid.Row="1" Header="铺设方式">
<UniformGrid Rows="1">
<RadioButton Content="房间" IsChecked="{Binding ByRoom, UpdateSourceTrigger=PropertyChanged}" />
<RadioButton Content="平面" IsChecked="{Binding ByRoom, Converter={StaticResource InvertBooleanConverter}}" />
</UniformGrid>
</GroupBox>
<CheckBox Content="边界留缝" IsChecked="{Binding IsEdgeExistGap, UpdateSourceTrigger=PropertyChanged}" />
<Button
x:Name="BtnByFace"
HorizontalAlignment="Stretch"
Command="{Binding PlaceBricksCommand}"
Content="铺设"
IsEnabled="{Binding HasErrors, Mode=OneWay, Converter={StaticResource InvertBooleanConverter}, UpdateSourceTrigger=PropertyChanged}" />
</ex:AutoGrid>
</ex:FluentWindowEx>