终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
1.6 KiB

  1. <UserControl x:Class="FryPot_DosingSystem.View.LabelPrint"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:FryPot_DosingSystem.View"
  7. xmlns:vm="clr-namespace:FryPot_DosingSystem.ViewModel"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <UserControl.DataContext>
  11. <vm:LabelPrintViewModel/>
  12. </UserControl.DataContext>
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition/>
  16. <RowDefinition/>
  17. </Grid.RowDefinitions>
  18. <Image Source="../Resources/pictures/战斗机.jpeg"></Image>
  19. <Button Grid.Row="1" Width="200" Height="100" Command="{Binding PrintCommand}" >
  20. <Button.Template>
  21. <ControlTemplate TargetType="{x:Type Button}">
  22. <Border Background="LightSeaGreen">
  23. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  24. <TextBlock Text="图标" FontSize="24" Foreground="White"></TextBlock>
  25. <TextBlock Text="打印" FontSize="24" Foreground="White"></TextBlock>
  26. </StackPanel>
  27. </Border>
  28. </ControlTemplate>
  29. </Button.Template>
  30. </Button>
  31. </Grid>
  32. </UserControl>