OpticalReadingConfigView.xaml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <UserControl x:Class="OHV.Module.Interactivity.PopUp.OpticalReadingConfigView"
  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:OHV.Module.Interactivity.PopUp"
  7. xmlns:prism="http://prismlibrary.com/"
  8. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. mc:Ignorable="d"
  11. Width="1000"
  12. Height="600"
  13. Background="#455a64">
  14. <prism:Dialog.WindowStyle>
  15. <Style TargetType="Window">
  16. <Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterScreen" />
  17. <Setter Property="Background" Value="Transparent"/>
  18. <Setter Property="AllowsTransparency" Value="True"/>
  19. <Setter Property="ResizeMode" Value="NoResize"/>
  20. <Setter Property="WindowStyle" Value="None"/>
  21. <Setter Property="BorderThickness" Value="1"/>
  22. <Setter Property="BorderBrush" Value="{DynamicResource BorderSolidNormal}"/>
  23. <Setter Property="Template" Value="{DynamicResource WindowTemplateKey}"/>
  24. <!--<Style.Triggers>
  25. <Trigger Property="ResizeMode" Value="CanResizeWithGrip">
  26. <Setter Property="Template" Value="{StaticResource WindowTemplateKey}"/>
  27. </Trigger>
  28. </Style.Triggers>-->
  29. </Style>
  30. </prism:Dialog.WindowStyle>
  31. <Grid>
  32. <Grid.ColumnDefinitions>
  33. <ColumnDefinition Width="*"/>
  34. <ColumnDefinition Width="130"/>
  35. </Grid.ColumnDefinitions>
  36. <Grid Grid.Column="0" Margin="15" Background="#37474f">
  37. <Grid.ColumnDefinitions>
  38. <ColumnDefinition/>
  39. <ColumnDefinition Width="2*"/>
  40. </Grid.ColumnDefinitions>
  41. <Border Grid.Column="0" Margin="39,10" BorderBrush="#FF00FFD3" BorderThickness="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
  42. <StackPanel VerticalAlignment="Center"
  43. HorizontalAlignment="Center"
  44. Grid.Column="0" Margin="85,15">
  45. <materialDesign:Badged Margin="5"
  46. Badge="Detect Area#1"
  47. BadgeColorZoneMode="Dark">
  48. <Button Width="100"
  49. Height="240"
  50. Background="{Binding OpReaderOutFirst}">
  51. <StackPanel>
  52. <TextBlock HorizontalAlignment="Center"><Run Text="Slow" FontSize="25"/></TextBlock>
  53. <TextBlock HorizontalAlignment="Center"><Run Text="Stop" FontSize="25"/></TextBlock>
  54. </StackPanel>
  55. </Button>
  56. </materialDesign:Badged>
  57. <materialDesign:Badged Margin="5"
  58. Badge="Detect Area#2"
  59. BadgeColorZoneMode="Dark">
  60. <Button Width="100"
  61. Height="170"
  62. Background="{Binding OpReaderOutSecond}">
  63. <StackPanel>
  64. <TextBlock HorizontalAlignment="Center"><Run Text="Safety" FontSize="25"/></TextBlock>
  65. <TextBlock HorizontalAlignment="Center"><Run Text="Stop" FontSize="25"/></TextBlock>
  66. </StackPanel>
  67. </Button>
  68. </materialDesign:Badged>
  69. <materialDesign:Badged Margin="5"
  70. Badge="Detect Area#3"
  71. BadgeColorZoneMode="Dark">
  72. <Button Width="100"
  73. Height="100"
  74. Background="{Binding OpReaderOutThird}">
  75. <StackPanel>
  76. <TextBlock><Run Text="Stop" FontSize="25"/></TextBlock>
  77. </StackPanel>
  78. </Button>
  79. </materialDesign:Badged>
  80. </StackPanel>
  81. <Grid Grid.Column="0">
  82. </Grid>
  83. <Grid Grid.Column="1">
  84. <Grid.RowDefinitions>
  85. <RowDefinition Height="*"/>
  86. <RowDefinition Height="*"/>
  87. </Grid.RowDefinitions>
  88. <Grid Grid.Row="0">
  89. <Border BorderBrush="Gray" BorderThickness="1"/>
  90. <StackPanel VerticalAlignment="Center"
  91. HorizontalAlignment="Center">
  92. <Button Height="60">
  93. <StackPanel>
  94. <TextBlock><Run Text="Obsatcle State" FontSize="20"/></TextBlock>
  95. </StackPanel>
  96. </Button>
  97. <Button Background="{x:Null}" Height="60">
  98. <StackPanel>
  99. <TextBlock><Run Text="{Binding ObstacleState, FallbackValue=NONE}" FontSize="25" Foreground="Orange"/></TextBlock>
  100. </StackPanel>
  101. </Button>
  102. </StackPanel>
  103. </Grid>
  104. <Grid Grid.Row="1">
  105. <Border BorderBrush="Gray" BorderThickness="1"/>
  106. <StackPanel Orientation="Horizontal"
  107. VerticalAlignment="Center"
  108. HorizontalAlignment="Center">
  109. <StackPanel Margin="5"
  110. VerticalAlignment="Center"
  111. HorizontalAlignment="Center">
  112. <Button Height="60">
  113. <StackPanel>
  114. <TextBlock><Run Text="Drive Pattern" FontSize="20"/></TextBlock>
  115. </StackPanel>
  116. </Button>
  117. <Button Background="{x:Null}" Height="60"
  118. Command="{Binding PatternResultKyein}"
  119. CommandParameter="D">
  120. <StackPanel>
  121. <TextBlock><Run Text="{Binding ObstacleDrive, FallbackValue=0}" FontSize="25" Foreground="Orange"/></TextBlock>
  122. </StackPanel>
  123. </Button>
  124. </StackPanel>
  125. <StackPanel Margin="5"
  126. VerticalAlignment="Center"
  127. HorizontalAlignment="Center">
  128. <Button Height="60">
  129. <StackPanel>
  130. <TextBlock><Run Text="Curve Pattern" FontSize="20"/></TextBlock>
  131. </StackPanel>
  132. </Button>
  133. <Button Background="{x:Null}" Height="60"
  134. Command="{Binding PatternResultKyein}"
  135. CommandParameter="C">
  136. <!--<Button.InputBindings>
  137. <MouseBinding Gesture="LeftClick" Command="{Binding KeyInTargetPosCommand}" CommandParameter="Left"/>
  138. </Button.InputBindings>-->
  139. <StackPanel>
  140. <TextBlock><Run Text="{Binding ObstacleCurve, FallbackValue=0}" FontSize="25" Foreground="Orange"/></TextBlock>
  141. </StackPanel>
  142. </Button>
  143. </StackPanel>
  144. </StackPanel>
  145. </Grid>
  146. </Grid>
  147. </Grid>
  148. <!--Right Sub Menu Grid-->
  149. <Grid Grid.Column="1" Background="#37474f">
  150. <StackPanel>
  151. </StackPanel>
  152. </Grid>
  153. <!--Right Main Menu Grid-->
  154. <Grid Grid.Column="2" Background="#263238">
  155. <Border Margin="1" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
  156. <StackPanel>
  157. <Button Margin="5,10,5,0" HorizontalAlignment="Stretch" Height="69"
  158. BorderBrush="Gray" BorderThickness="2"
  159. Command="{Binding DetectPatternSave}" CommandParameter="true">
  160. <StackPanel>
  161. <materialDesign:PackIcon Kind="CalendarExport" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  162. <TextBlock Text="Save" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
  163. </StackPanel>
  164. </Button>
  165. <Button Margin="5" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2"
  166. Command="{Binding CloseDialogCommand}" CommandParameter="true">
  167. <StackPanel>
  168. <materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  169. <TextBlock Text="Close" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
  170. </StackPanel>
  171. </Button>
  172. </StackPanel>
  173. </Grid>
  174. </Grid>
  175. </UserControl>