ConveyorControlView.xaml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <UserControl x:Class="OHV.Module.Interactivity.PopUp.ConveyorControlView"
  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. mc:Ignorable="d"
  8. xmlns:prism="http://prismlibrary.com/"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  11. Background="#455a64"
  12. Height="600"
  13. Width="800">
  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">
  37. <Grid Margin="15" Background="#37474f">
  38. <Grid.RowDefinitions>
  39. <RowDefinition Height="*"/>
  40. <RowDefinition Height="*"/>
  41. </Grid.RowDefinitions>
  42. <Grid Grid.Row="0">
  43. <Button Content="Conveyor Control" Foreground="Orange" Background="{x:Null}" FontSize="20"
  44. VerticalAlignment="Top" HorizontalAlignment="Left"
  45. Width="Auto" Height="50"/>
  46. <StackPanel Orientation="Horizontal"
  47. HorizontalAlignment="Center">
  48. <Button HorizontalAlignment="Stretch"
  49. Style="{StaticResource MaterialDesignRaisedButton}"
  50. materialDesign:ButtonAssist.CornerRadius="10"
  51. Command="{Binding ConveyorRunCommand}"
  52. CommandParameter="CW"
  53. Height="100" Width="100"
  54. Margin="15">
  55. <StackPanel>
  56. <materialDesign:PackIcon Kind="TransferUp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  57. <TextBlock Text="CW" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
  58. </StackPanel>
  59. </Button>
  60. <Button
  61. Style="{StaticResource MaterialDesignRaisedButton}"
  62. materialDesign:ButtonAssist.CornerRadius="10"
  63. Height="100" Width="100"
  64. Margin="15"
  65. Command="{Binding ConveyorRunCommand}"
  66. CommandParameter="CCW">
  67. <StackPanel>
  68. <materialDesign:PackIcon Kind="TransferDown" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  69. <TextBlock Text="CCW" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
  70. </StackPanel>
  71. </Button>
  72. <Button HorizontalAlignment="Stretch"
  73. Style="{StaticResource MaterialDesignRaisedButton}"
  74. materialDesign:ButtonAssist.CornerRadius="10"
  75. Command="{Binding ConveyorRunCommand}"
  76. CommandParameter="STOP"
  77. Height="100" Width="100"
  78. Margin="15">
  79. <StackPanel>
  80. <materialDesign:PackIcon Kind="StopCircleOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  81. <TextBlock Text="Stop" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
  82. </StackPanel>
  83. </Button>
  84. </StackPanel>
  85. </Grid>
  86. <Grid Grid.Row="1">
  87. <Button Content="Carrier Control" Foreground="Orange" Background="{x:Null}" FontSize="20"
  88. VerticalAlignment="Top" Width="Auto" Height="50"
  89. HorizontalAlignment="Left"/>
  90. <StackPanel Orientation="Horizontal"
  91. HorizontalAlignment="Center">
  92. <Button Margin="15"
  93. Width="100" Height="100"
  94. Style="{StaticResource MaterialDesignRaisedButton}"
  95. materialDesign:ButtonAssist.CornerRadius="10"
  96. Command="{Binding PosMoveCommand}"
  97. CommandParameter="Lock">
  98. <StackPanel>
  99. <materialDesign:PackIcon Kind="ElectricSwitchClosed" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  100. <TextBlock Text="Lock" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
  101. </StackPanel>
  102. </Button>
  103. <Button Margin="15"
  104. Width="100" Height="100"
  105. Style="{StaticResource MaterialDesignRaisedButton}"
  106. materialDesign:ButtonAssist.CornerRadius="10"
  107. Command="{Binding PosMoveCommand}"
  108. CommandParameter="UnLock">
  109. <StackPanel>
  110. <materialDesign:PackIcon Kind="ElectricSwitch" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  111. <TextBlock Text="UnLock" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
  112. </StackPanel>
  113. </Button>
  114. </StackPanel>
  115. </Grid>
  116. </Grid>
  117. </Grid>
  118. <Grid Grid.Column="1" Background="#263238">
  119. <Border Margin="1" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
  120. <StackPanel>
  121. <Button Margin="7,20" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding CloseDialogCommand}" CommandParameter="true">
  122. <StackPanel>
  123. <materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  124. <TextBlock Text="Close" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
  125. </StackPanel>
  126. </Button>
  127. </StackPanel>
  128. </Grid>
  129. </Grid>
  130. </UserControl>