终端一体化运控平台
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

DebugView.xaml 6.1 KiB

1 år sedan
1 år sedan
1 år sedan
1 år sedan
1 år sedan
1 år sedan
1 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <UserControl x:Class="BPASmartClient.MorkT_BarCounter.View.DebugView"
  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:vm="clr-namespace:BPASmartClient.MorkT_BarCounter.ViewModel"
  7. mc:Ignorable="d"
  8. Name="测试界面"
  9. d:DesignHeight="500" d:DesignWidth="1000" Unloaded="Dubug_Unloaded">
  10. <UserControl.DataContext>
  11. <vm:DebugViewModel/>
  12. </UserControl.DataContext>
  13. <UserControl.Resources>
  14. <ResourceDictionary>
  15. <ResourceDictionary.MergedDictionaries>
  16. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
  17. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
  18. </ResourceDictionary.MergedDictionaries>
  19. </ResourceDictionary>
  20. </UserControl.Resources>
  21. <Grid>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition></ColumnDefinition>
  24. <ColumnDefinition></ColumnDefinition>
  25. <ColumnDefinition></ColumnDefinition>
  26. </Grid.ColumnDefinitions>
  27. <Grid.RowDefinitions>
  28. <RowDefinition></RowDefinition>
  29. <RowDefinition></RowDefinition>
  30. </Grid.RowDefinitions>
  31. <WrapPanel>
  32. <TextBlock Grid.Column="0" Height="22" Width="100" FontSize="14">机器人执行程序:</TextBlock>
  33. <TextBox Margin="10" Width="80" Text="{Binding JakaRobotProgram}"></TextBox>
  34. <Button Margin="10" Content="启动" Width="50" Command="{Binding RobotControlCommand}"></Button>
  35. </WrapPanel>
  36. <WrapPanel Grid.Column="1">
  37. <TextBlock Grid.Column="0" Height="22" Width="100" FontSize="14">咖啡机执行程序:</TextBlock>
  38. <TextBox Margin="10" Width="80" Text="{Binding CoffeeKind}"></TextBox>
  39. <Button Margin="10" Content="启动" Width="50" Command="{Binding CoffeeControlCommand}"></Button>
  40. </WrapPanel>
  41. <Grid Grid.Column="2">
  42. <Grid.ColumnDefinitions>
  43. <ColumnDefinition></ColumnDefinition>
  44. <ColumnDefinition></ColumnDefinition>
  45. </Grid.ColumnDefinitions>
  46. <Grid.RowDefinitions>
  47. <RowDefinition></RowDefinition>
  48. <RowDefinition></RowDefinition>
  49. <RowDefinition></RowDefinition>
  50. <RowDefinition></RowDefinition>
  51. <RowDefinition></RowDefinition>
  52. <RowDefinition></RowDefinition>
  53. <RowDefinition></RowDefinition>
  54. </Grid.RowDefinitions>
  55. <WrapPanel Grid.Row="0" Grid.Column="0" >
  56. <TextBlock Width="80" FontSize="14">通道1的值:</TextBlock>
  57. <TextBox Margin="2" Width="50" Text="{Binding CH_Value[0]}"></TextBox>
  58. </WrapPanel>
  59. <WrapPanel Grid.Row="0" Grid.Column="1" >
  60. <TextBlock Width="80" FontSize="14">通道2的值:</TextBlock>
  61. <TextBox Margin="2" Width="50" Text="{Binding CH_Value[1]}"></TextBox>
  62. </WrapPanel>
  63. <WrapPanel Grid.Row="1" Grid.Column="0" >
  64. <TextBlock Width="80" FontSize="14">通道3的值:</TextBlock>
  65. <TextBox Margin="2" Width="50" Text="{Binding CH_Value[2]}"></TextBox>
  66. </WrapPanel>
  67. <WrapPanel Grid.Row="1" Grid.Column="1" >
  68. <TextBlock Width="80" FontSize="14">通道4的值:</TextBlock>
  69. <TextBox Margin="2" Width="50" Text="{Binding CH_Value[3]}"></TextBox>
  70. </WrapPanel>
  71. <WrapPanel Grid.Row="2" Grid.Column="0" >
  72. <TextBlock Width="80" FontSize="14">通道5的值:</TextBlock>
  73. <TextBox Margin="2" Width="50" Text="{Binding CH_Value[4]}"></TextBox>
  74. </WrapPanel>
  75. <WrapPanel Grid.Row="2" Grid.Column="1" >
  76. <TextBlock Width="80" FontSize="14">通道6的值:</TextBlock>
  77. <TextBox Margin="2" Width="50" Text="{Binding CH_Value[5]}"></TextBox>
  78. </WrapPanel>
  79. <WrapPanel Grid.Row="3" Grid.Column="0" >
  80. <TextBlock Width="80" FontSize="14">通道7的值:</TextBlock>
  81. <TextBox Margin="2" Width="50" Text="{Binding CH_Value[6]}"></TextBox>
  82. </WrapPanel>
  83. <WrapPanel Grid.Row="3" Grid.Column="1" >
  84. <TextBlock Width="80" FontSize="14">通道8的值:</TextBlock>
  85. <TextBox Margin="2" Width="50" Text="{Binding CH_Value[7]}"></TextBox>
  86. </WrapPanel>
  87. <WrapPanel Grid.Row="4" Grid.Column="0" >
  88. <TextBlock Width="80" FontSize="14">通道9的值:</TextBlock>
  89. <TextBox Margin="2" Width="50" Text="{Binding CH_Value[8]}"></TextBox>
  90. </WrapPanel>
  91. <WrapPanel Grid.Row="4" Grid.Column="1" >
  92. <TextBlock Width="80" FontSize="14">通道10的值:</TextBlock>
  93. <TextBox Margin="2" Width="50" Text="{Binding CH_Value[9]}"></TextBox>
  94. </WrapPanel>
  95. <WrapPanel Grid.Row="5" Grid.Column="0" >
  96. <TextBlock Width="80" FontSize="14">通道11的值:</TextBlock>
  97. <TextBox Margin="2" Width="50" Text="{Binding CH_Value[10]}"></TextBox>
  98. </WrapPanel>
  99. <WrapPanel Grid.Row="5" Grid.Column="1" >
  100. <TextBlock Width="80" FontSize="14">通道12的值:</TextBlock>
  101. <TextBox Margin="2" Width="50" Text="{Binding CH_Value[11]}"></TextBox>
  102. </WrapPanel>
  103. <WrapPanel Grid.Row="6" Grid.ColumnSpan="2" >
  104. <TextBlock Height="22" Width="100" FontSize="14">味魔方执行程序:</TextBlock>
  105. <Button Margin="2" Content="启动" Width="50" Command="{Binding MikeTeaCupControlCommand}"></Button>
  106. <Button Margin="2" Content="保存参数" Width="60" Command="{Binding MikeTeaCupSetParCommand}"></Button>
  107. </WrapPanel>
  108. </Grid>
  109. </Grid>
  110. </UserControl>