终端一体化运控平台
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

TempManageControlView.xaml 4.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <UserControl
  2. x:Class="BPASmartClient.DosingSystem.View.TempManageControlView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.DosingSystem.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  9. xmlns:vm="clr-namespace:BPASmartClient.DosingSystem.ViewModel"
  10. d:DesignHeight="450"
  11. d:DesignWidth="800"
  12. mc:Ignorable="d">
  13. <UserControl.DataContext>
  14. <vm:TempManageControlViewModel />
  15. </UserControl.DataContext>
  16. <Grid>
  17. <Grid.RowDefinitions>
  18. <RowDefinition />
  19. <RowDefinition />
  20. <RowDefinition />
  21. </Grid.RowDefinitions>
  22. <Grid Margin="8">
  23. <Grid
  24. Name="cy"
  25. Grid.Row="0"
  26. Margin="5">
  27. <pry:ImageBorder
  28. Grid.RowSpan="2"
  29. Width="{Binding ElementName=cy, Path=ActualWidth}"
  30. Height="{Binding ElementName=cy, Path=ActualHeight}" />
  31. <StackPanel Background="Transparent">
  32. <Grid Height="40">
  33. <Image
  34. Margin="2,3,0,0"
  35. HorizontalAlignment="Left"
  36. VerticalAlignment="Top"
  37. Source="/BPASmartClient.CustomResource;component/Image/标签.png" />
  38. <TextBlock
  39. Margin="10,10,0,0"
  40. VerticalAlignment="Top"
  41. FontSize="16"
  42. Foreground="Aqua"
  43. Text="{Binding Name}" />
  44. <StackPanel
  45. Margin="0,0,20,0"
  46. HorizontalAlignment="Right"
  47. Orientation="Horizontal">
  48. <TextBlock
  49. Margin="0,0,2,0"
  50. Style="{StaticResource TextBlockStyle}"
  51. Text="输送带反转控制" />
  52. <ToggleButton
  53. Width="80"
  54. Height="30"
  55. Margin="5,0,5,0"
  56. Background="Transparent"
  57. FontSize="20"
  58. IsChecked="{Binding Reversal}"
  59. Style="{StaticResource SwitchToggleButtonStyle}" />
  60. <TextBlock
  61. Margin="20,0,5,0"
  62. VerticalAlignment="Center"
  63. FontSize="20"
  64. Foreground="#00c2f4"
  65. Text="输送带正转控制" />
  66. <ToggleButton
  67. Width="80"
  68. Height="30"
  69. Margin="5,0,5,0"
  70. Background="Transparent"
  71. FontSize="20"
  72. IsChecked="{Binding Foreward}"
  73. Style="{StaticResource SwitchToggleButtonStyle}" />
  74. </StackPanel>
  75. </Grid>
  76. <Grid Name="gr" Height="200">
  77. <pry:ConveyBelt2
  78. Grid.RowSpan="4"
  79. Margin="-12,0,10,0"
  80. BeltDashThickess="50"
  81. BeltDirection="{Binding BeltDirection}"
  82. BeltHeight="{Binding ElementName=gr, Path=ActualHeight}"
  83. BeltWidth="{Binding ElementName=gr, Path=ActualWidth}"
  84. IsRun="{Binding IsRun}" />
  85. </Grid>
  86. </StackPanel>
  87. </Grid>
  88. </Grid>
  89. </Grid>
  90. </UserControl>