65 lines
2.7 KiB
Plaintext
65 lines
2.7 KiB
Plaintext
|
|
<controls:MaterialWindow
|
||
|
|
x:Class="Szmedi.RvKits.Civil.WallFinishesWin"
|
||
|
|
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"
|
||
|
|
d:DataContext="{d:DesignInstance rvCivil:WallFinishesViewModel}"
|
||
|
|
Background="{DynamicResource MaterialDesign.Brush.Background}"
|
||
|
|
|
||
|
|
TextElement.Foreground="{DynamicResource MaterialDesign.Brush.Foreground}"
|
||
|
|
mc:Ignorable="d">
|
||
|
|
<controls:MaterialWindow.Resources>
|
||
|
|
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
|
||
|
|
</controls:MaterialWindow.Resources>
|
||
|
|
<Grid>
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="*" />
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
<GroupBox VerticalAlignment="Stretch" Header="饰面类型">
|
||
|
|
<ListBox
|
||
|
|
x:Name="CbbWallTypes"
|
||
|
|
VerticalAlignment="Stretch"
|
||
|
|
DisplayMemberPath="Name"
|
||
|
|
ItemsSource="{Binding WallTypes}"
|
||
|
|
SelectedValue="{Binding SelectedWallType, UpdateSourceTrigger=PropertyChanged}" />
|
||
|
|
</GroupBox>
|
||
|
|
<TextBox
|
||
|
|
x:Name="TbWallHeight"
|
||
|
|
Grid.Row="1"
|
||
|
|
md:HintAssist.Hint="饰面总高度(mm)"
|
||
|
|
Text="{Binding WallHeight, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F2}}" />
|
||
|
|
<TextBox
|
||
|
|
x:Name="TbWallBase"
|
||
|
|
Grid.Row="2"
|
||
|
|
md:HintAssist.Hint="饰面底部离地高度(mm)"
|
||
|
|
Text="{Binding WallBaseOffset, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F2}}" />
|
||
|
|
<ComboBox
|
||
|
|
x:Name="CbbPlaceType"
|
||
|
|
Grid.Row="3"
|
||
|
|
md:HintAssist.Hint="请选择项目"
|
||
|
|
IsSynchronizedWithCurrentItem="True"
|
||
|
|
SelectedIndex="0"
|
||
|
|
Text="布置方式">
|
||
|
|
<ComboBoxItem Content="墙面" />
|
||
|
|
<ComboBoxItem Content="房间" />
|
||
|
|
<ComboBoxItem Content="整墙" />
|
||
|
|
</ComboBox>
|
||
|
|
<Button
|
||
|
|
x:Name="BtnPlace"
|
||
|
|
Grid.Row="4"
|
||
|
|
VerticalAlignment="Center"
|
||
|
|
Command="{Binding PlaceWallCommand}"
|
||
|
|
Content="布置" />
|
||
|
|
</Grid>
|
||
|
|
</controls:MaterialWindow>
|