添加项目文件。
This commit is contained in:
54
Szmedi.RvKits/MEPTools/CableLayoutWin.xaml
Normal file
54
Szmedi.RvKits/MEPTools/CableLayoutWin.xaml
Normal file
@@ -0,0 +1,54 @@
|
||||
<controls:MaterialWindow
|
||||
x:Class="Szmedi.RvKits.MEPTools.CableLayoutWin"
|
||||
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:electricDesign="clr-namespace:Szmedi.RvKits.MEPTools"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="线缆布置"
|
||||
MinWidth="250"
|
||||
MinHeight="200"
|
||||
d:DataContext="{d:DesignInstance Type=electricDesign:CableLayoutViewModel}"
|
||||
SizeToContent="Height"
|
||||
mc:Ignorable="d">
|
||||
<controls:MaterialWindow.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</controls:MaterialWindow.Resources>
|
||||
<Grid>
|
||||
<StackPanel>
|
||||
<ComboBox
|
||||
materialDesign:HintAssist.Hint="线缆型号"
|
||||
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
|
||||
ItemsSource="{Binding Specifications}"
|
||||
SelectedItem="{Binding SelectedConduitType, UpdateSourceTrigger=PropertyChanged}">
|
||||
<b:Interaction.Triggers>
|
||||
<b:EventTrigger EventName="SelectionChanged">
|
||||
<b:InvokeCommandAction Command="{Binding SelectionType}" />
|
||||
</b:EventTrigger>
|
||||
</b:Interaction.Triggers>
|
||||
</ComboBox>
|
||||
<ComboBox
|
||||
materialDesign:HintAssist.Hint="线缆线径"
|
||||
materialDesign:TextFieldAssist.SuffixText="mm"
|
||||
DisplayMemberPath="Key"
|
||||
ItemsSource="{Binding Sizes}"
|
||||
SelectedValue="{Binding Size, UpdateSourceTrigger=PropertyChanged}"
|
||||
SelectedValuePath="Value" />
|
||||
<TextBox materialDesign:HintAssist.Hint="线缆数量" InputMethod.IsInputMethodEnabled="False" Text="{Binding Count, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Button Margin="5,15,5,5" Content="布置">
|
||||
<b:Interaction.Triggers>
|
||||
<b:EventTrigger EventName="Click">
|
||||
<b:InvokeCommandAction Command="{Binding CloseWin}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}" />
|
||||
</b:EventTrigger>
|
||||
</b:Interaction.Triggers>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</controls:MaterialWindow>
|
||||
Reference in New Issue
Block a user