添加项目文件。
This commit is contained in:
84
Szmedi.RvKits/MEPTools/StandMepCurveWin.xaml
Normal file
84
Szmedi.RvKits/MEPTools/StandMepCurveWin.xaml
Normal file
@@ -0,0 +1,84 @@
|
||||
<controls:MaterialWindow
|
||||
x:Class="Szmedi.RvKits.MEPTools.StandMepCurveWin"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
||||
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:mep="clr-namespace:Szmedi.RvKits.MEPTools"
|
||||
Title="创建立管"
|
||||
Width="250"
|
||||
Height="320"
|
||||
MinWidth="250"
|
||||
MinHeight="280"
|
||||
d:DataContext="{d:DesignInstance mep:StandMepCurveViewModel}"
|
||||
SizeToContent="Height"
|
||||
WindowStartupLocation="CenterOwner"
|
||||
mc:Ignorable="d">
|
||||
<b:Interaction.Triggers>
|
||||
<!--<b:EventTrigger EventName="Deactivated">
|
||||
<b:InvokeCommandAction Command="{Binding CreateMepCurveCommand}" />
|
||||
</b:EventTrigger>-->
|
||||
<b:EventTrigger EventName="Closing">
|
||||
<b:InvokeCommandAction Command="{Binding CancelCommand}" />
|
||||
</b:EventTrigger>
|
||||
</b:Interaction.Triggers>
|
||||
<controls:MaterialWindow.Resources>
|
||||
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
|
||||
</controls:MaterialWindow.Resources>
|
||||
<Grid Margin="5">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel>
|
||||
<RadioButton x:Name="RbPipe" Content="水管" IsChecked="{Binding IsPipe}" />
|
||||
<StackPanel Visibility="{Binding IsPipe, Converter={x:Static md:BooleanToVisibilityConverter.CollapsedInstance}}">
|
||||
<ComboBox
|
||||
md:HintAssist.Hint="管道类型"
|
||||
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
|
||||
ItemsSource="{Binding PipeTypes}"
|
||||
SelectedItem="{Binding SelectedPipeType}" />
|
||||
<ComboBox
|
||||
md:HintAssist.Hint="管道系统类型"
|
||||
DisplayMemberPath="Name"
|
||||
ItemsSource="{Binding PipeSystemTypes}"
|
||||
SelectedItem="{Binding SelectedPipeSystemType}" />
|
||||
</StackPanel>
|
||||
<RadioButton x:Name="RbDuct" Content="风管" IsChecked="{Binding IsDuct}" />
|
||||
<StackPanel Visibility="{Binding IsDuct, Converter={x:Static md:BooleanToVisibilityConverter.CollapsedInstance}}">
|
||||
<ComboBox
|
||||
md:HintAssist.Hint="风管类型"
|
||||
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
|
||||
ItemsSource="{Binding DuctTypes}"
|
||||
SelectedItem="{Binding SelectedDuctType}" />
|
||||
<ComboBox
|
||||
md:HintAssist.Hint="风管系统类型"
|
||||
DisplayMemberPath="Name"
|
||||
ItemsSource="{Binding DuctSystemTypes}"
|
||||
SelectedItem="{Binding SelectedDuctSystemType}" />
|
||||
</StackPanel>
|
||||
<RadioButton x:Name="RbConduit" Content="线管" IsChecked="{Binding IsConduit}" />
|
||||
<ComboBox
|
||||
md:HintAssist.Hint="线管类型"
|
||||
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
|
||||
ItemsSource="{Binding ConduitTypes}"
|
||||
SelectedItem="{Binding SelectedConduitType}"
|
||||
Visibility="{Binding IsConduit, Converter={x:Static md:BooleanToVisibilityConverter.CollapsedInstance}}" />
|
||||
<RadioButton x:Name="RbCableTray" Content="桥架" IsChecked="{Binding IsCableTray}" />
|
||||
<ComboBox
|
||||
md:HintAssist.Hint="桥架类型"
|
||||
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
|
||||
ItemsSource="{Binding CableTrayTypes}"
|
||||
SelectedItem="{Binding SelectedCableTrayType}"
|
||||
Visibility="{Binding IsCableTray, Converter={x:Static md:BooleanToVisibilityConverter.CollapsedInstance}}" />
|
||||
</StackPanel>
|
||||
<Button
|
||||
Grid.Row="1"
|
||||
VerticalAlignment="Bottom"
|
||||
Command="{Binding CreateMepCurveCommand}"
|
||||
Content="创建立管" />
|
||||
</Grid>
|
||||
</controls:MaterialWindow>
|
||||
Reference in New Issue
Block a user