添加项目文件。
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
<controls:MaterialWindow
|
||||
x:Class="Szmedi.RvKits.InfoManager.WriteFacilityCodeWin"
|
||||
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:local="clr-namespace:Szmedi.RvKits.InfoManager"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="设备编号"
|
||||
Width="600"
|
||||
Height="300"
|
||||
d:DataContext="{d:DesignInstance Type=local:WriteFacilityCodeViewModel}"
|
||||
SizeToContent="Height"
|
||||
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" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<GroupBox
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="4"
|
||||
Header="提取的设备编号表">
|
||||
<ListBox
|
||||
x:Name="LbCategories"
|
||||
d:ItemsSource="{d:SampleData ItemCount=5}"
|
||||
DisplayMemberPath="Key"
|
||||
ItemsSource="{Binding Codes}"
|
||||
SelectedItem="{Binding SelectedCode}"
|
||||
SelectedValue="{Binding Code}"
|
||||
SelectedValuePath="Key"
|
||||
SelectionMode="Single"
|
||||
Style="{StaticResource MaterialDesignChoiceChipListBox}">
|
||||
<!--<b:Interaction.Triggers>
|
||||
<b:EventTrigger EventName="SelectionChanged">
|
||||
<b:InvokeCommandAction Command="{Binding GetRenameItemsCommand}" CommandParameter="{Binding SelectedItems, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBox}}" />
|
||||
</b:EventTrigger>
|
||||
</b:Interaction.Triggers>-->
|
||||
</ListBox>
|
||||
</GroupBox>
|
||||
<TextBox
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
materialDesign:HintAssist.Hint="搜索设备编码"
|
||||
Text="{Binding SearchText, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
materialDesign:HintAssist.Hint="设备编码"
|
||||
Text="{Binding Code, UpdateSourceTrigger=PropertyChanged}"
|
||||
ToolTip="要填写的设备编码" />
|
||||
<TextBox
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
materialDesign:HintAssist.Hint="构件属性"
|
||||
Text="{Binding PropertyName, UpdateSourceTrigger=PropertyChanged}"
|
||||
ToolTip="拾取的要填写的构件属性" />
|
||||
<Button
|
||||
Grid.Row="1"
|
||||
Grid.Column="2"
|
||||
Command="{Binding ReadDwgCodesCommand}"
|
||||
Content="拾取编码图层" />
|
||||
<UniformGrid
|
||||
Grid.Row="2"
|
||||
Grid.Column="2"
|
||||
Rows="1">
|
||||
<CheckBox Content="编号自增" IsChecked="{Binding IsIncrement}" />
|
||||
<Button Command="{Binding WriteCodeCommand}" Content="填写编码" />
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</controls:MaterialWindow>
|
||||
Reference in New Issue
Block a user