终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526272829303132
  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>