118 lines
3.5 KiB
XML
118 lines
3.5 KiB
XML
<Window
|
|
x:Class="Sinvo.EplanHpD.Plugin.WPFUI.View.ScannerInfo"
|
|
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:local="clr-namespace:Sinvo.EplanHpD.Plugin.WPFUI.View"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:viewmodel="clr-namespace:Sinvo.EplanHpD.Plugin.WPFUI.ViewModel"
|
|
Title="布线常规属性"
|
|
Width="1100"
|
|
Height="120"
|
|
MinHeight="120"
|
|
MaxHeight="120"
|
|
d:DataContext="{d:DesignInstance Type=viewmodel:ScannerViewModel}"
|
|
AllowsTransparency="False"
|
|
Left="300"
|
|
ResizeMode="NoResize"
|
|
Topmost="True"
|
|
WindowStartupLocation="Manual"
|
|
WindowStyle="SingleBorderWindow"
|
|
mc:Ignorable="d">
|
|
<Window.Resources>
|
|
<Style TargetType="TextBlock">
|
|
<Setter Property="FontSize" Value="15" />
|
|
<Setter Property="FontWeight" Value="ExtraBold" />
|
|
</Style>
|
|
</Window.Resources>
|
|
<Grid x:Name="top" Margin="10">
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="1.5*" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="3"
|
|
Margin="10,5,10,0"
|
|
FlowDirection="LeftToRight"
|
|
Orientation="Horizontal">
|
|
<TextBlock Text="名字:" />
|
|
<TextBlock Text="{Binding Code}" />
|
|
<TextBlock Text=" 型号:" />
|
|
<TextBlock Text="{Binding Name}" />
|
|
<TextBlock Text=" 长度:" />
|
|
<TextBlock Text="{Binding Length}" />
|
|
<TextBlock Text=" 印记:" />
|
|
<TextBlock Text="{Binding Imprint}" />
|
|
|
|
</StackPanel>
|
|
<TextBlock Grid.Row="1" Text="部件1:" />
|
|
<Button
|
|
Name="button1"
|
|
Grid.Row="1"
|
|
Click="Button_Click">
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Margin="50,0,0,0"
|
|
Text="{Binding S_part}" />
|
|
</Button>
|
|
|
|
|
|
<TextBlock Grid.Row="2" Text="管脚1:" />
|
|
<Button
|
|
Name="button2"
|
|
Grid.Row="2"
|
|
Margin="50,0,0,0"
|
|
Click="Button_Click_1">
|
|
<TextBlock
|
|
Grid.Row="2"
|
|
Margin="0,0,0,0"
|
|
Text="{Binding S_pin}" />
|
|
</Button>
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="1"
|
|
Margin="0,15,0,0"
|
|
Text="<--------------------------------------------------------------->" />
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Text="部件2:" />
|
|
|
|
<Button
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Margin="50,0,0,0" Click="Button_Click_2">
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Margin="50,0,0,0"
|
|
Text="{Binding E_part}" />
|
|
</Button>
|
|
|
|
<TextBlock
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
Text="管脚2:" />
|
|
<Button
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
Margin="50,0,0,0" Click="Button_Click_3">
|
|
<TextBlock Text="{Binding E_pin}" />
|
|
</Button>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</Window>
|