MainWindow.xaml 1.5 KB

1234567891011121314151617181920212223
  1. <Window
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:wfh="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  7. xmlns:wfc="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
  8. xmlns:local="clr-namespace:WpfApp1"
  9. xmlns:PLCS7="clr-namespace:PLCS7;assembly=PLCS7" x:Class="WpfApp1.MainWindow"
  10. mc:Ignorable="d"
  11. Title="MainWindow" Height="700" Width="1200" Closed="win_Closed">
  12. <Grid Margin="0,0,-8,-20">
  13. <WindowsFormsHost x:Name="form1" HorizontalAlignment="Left" Height="500" Margin="10,65,0,0" VerticalAlignment="Top" Width="750">
  14. <wfc:FlowLayoutPanel x:Name="flowLayoutPanel1"/>
  15. </WindowsFormsHost>
  16. <Button x:Name="GetNum" Content="生成号牌" HorizontalAlignment="Left" Margin="886,138,0,0" VerticalAlignment="Top" Width="64" Height="36" Click="GetNum_Click"/>
  17. <TextBox x:Name="NumMachineId" HorizontalAlignment="Left" Height="47" Margin="812,65,0,0" TextWrapping="Wrap" Text="input id" VerticalAlignment="Top" Width="76">
  18. </TextBox>
  19. <TextBox x:Name="License" HorizontalAlignment="Left" Height="47" Margin="941,65,0,0" TextWrapping="Wrap" Text="result" VerticalAlignment="Top" Width="76"/>
  20. </Grid>
  21. </Window>