| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- <UserControl x:Class="OHV.Module.Interactivity.PopUp.ConveyorControlView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:OHV.Module.Interactivity.PopUp"
- mc:Ignorable="d"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- Background="#455a64"
- Height="600"
- Width="800">
- <prism:Dialog.WindowStyle>
- <Style TargetType="Window">
- <Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterScreen" />
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="AllowsTransparency" Value="True"/>
- <Setter Property="ResizeMode" Value="NoResize"/>
- <Setter Property="WindowStyle" Value="None"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="BorderBrush" Value="{DynamicResource BorderSolidNormal}"/>
- <Setter Property="Template" Value="{DynamicResource WindowTemplateKey}"/>
- <!--<Style.Triggers>
- <Trigger Property="ResizeMode" Value="CanResizeWithGrip">
- <Setter Property="Template" Value="{StaticResource WindowTemplateKey}"/>
- </Trigger>
- </Style.Triggers>-->
- </Style>
- </prism:Dialog.WindowStyle>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="130"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <Grid Margin="15" Background="#37474f">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <Button Content="Conveyor Control" Foreground="Orange" Background="{x:Null}" FontSize="20"
- VerticalAlignment="Top" HorizontalAlignment="Left"
- Width="Auto" Height="50"/>
- <StackPanel Orientation="Horizontal"
- HorizontalAlignment="Center">
- <Button HorizontalAlignment="Stretch"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- Command="{Binding ConveyorRunCommand}"
- CommandParameter="CW"
- Height="100" Width="100"
- Margin="15">
- <StackPanel>
- <materialDesign:PackIcon Kind="TransferUp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
- <TextBlock Text="CW" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
- </StackPanel>
- </Button>
- <Button
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- Height="100" Width="100"
- Margin="15"
- Command="{Binding ConveyorRunCommand}"
- CommandParameter="CCW">
- <StackPanel>
- <materialDesign:PackIcon Kind="TransferDown" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
- <TextBlock Text="CCW" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
- </StackPanel>
- </Button>
- <Button HorizontalAlignment="Stretch"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- Command="{Binding ConveyorRunCommand}"
- CommandParameter="STOP"
- Height="100" Width="100"
- Margin="15">
- <StackPanel>
- <materialDesign:PackIcon Kind="StopCircleOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
- <TextBlock Text="Stop" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
- </StackPanel>
- </Button>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1">
- <Button Content="Carrier Control" Foreground="Orange" Background="{x:Null}" FontSize="20"
- VerticalAlignment="Top" Width="Auto" Height="50"
- HorizontalAlignment="Left"/>
-
- <StackPanel Orientation="Horizontal"
- HorizontalAlignment="Center">
- <Button Margin="15"
- Width="100" Height="100"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- Command="{Binding PosMoveCommand}"
- CommandParameter="Lock">
- <StackPanel>
- <materialDesign:PackIcon Kind="ElectricSwitchClosed" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
- <TextBlock Text="Lock" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
- </StackPanel>
- </Button>
- <Button Margin="15"
- Width="100" Height="100"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- Command="{Binding PosMoveCommand}"
- CommandParameter="UnLock">
- <StackPanel>
- <materialDesign:PackIcon Kind="ElectricSwitch" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
- <TextBlock Text="UnLock" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
- </StackPanel>
- </Button>
- </StackPanel>
- </Grid>
- </Grid>
- </Grid>
- <Grid Grid.Column="1" Background="#263238">
- <Border Margin="1" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
- <StackPanel>
- <Button Margin="7,20" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding CloseDialogCommand}" CommandParameter="true">
- <StackPanel>
- <materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
- <TextBlock Text="Close" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
- </StackPanel>
- </Button>
- </StackPanel>
- </Grid>
- </Grid>
- </UserControl>
|