| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372 |
- <UserControl x:Class="OHV.Module.Interactivity.PopUp.LockServoView"
- 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:prism="http://prismlibrary.com/"
- xmlns:local="clr-namespace:OHV.Module.Interactivity.PopUp"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- Width="800"
- Height="600"
- Background="#455a64">
- <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/>
- <ColumnDefinition Width="130"/>
- <ColumnDefinition Width="130"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <Grid Margin="15,15" Background="#37474f">
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Border BorderBrush="#FF00FFD3" BorderThickness="2" Grid.RowSpan="4" Grid.Column="3" Margin="95,10,2,0"/>
- <!--Column1-->
- <Button Background="{x:Null}" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Stretch" Margin="5" Height="auto"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners">
- <StackPanel>
- <TextBlock HorizontalAlignment="Center"><Run Text="Axis"/></TextBlock>
- <TextBlock HorizontalAlignment="Center"><Run Text="Select"/></TextBlock>
- </StackPanel>
- </Button>
- <Button Grid.Column="0" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" Height="auto"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners">
- <StackPanel>
- <TextBlock HorizontalAlignment="Center"><Run Text="Target"/></TextBlock>
- <TextBlock HorizontalAlignment="Center"><Run Text="Pos"/></TextBlock>
- </StackPanel>
- </Button>
- <Button Grid.Column="0" Grid.Row="2" HorizontalAlignment="Stretch" Margin="5" Height="auto"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners">
- <StackPanel>
- <TextBlock HorizontalAlignment="Center"><Run Text="Current"/></TextBlock>
- <TextBlock HorizontalAlignment="Center"><Run Text="Pos"/></TextBlock>
- </StackPanel>
- </Button>
- <Button Grid.Column="0" Grid.Row="3" HorizontalAlignment="Stretch" Margin="5" Height="auto"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners">
- <StackPanel>
- <TextBlock HorizontalAlignment="Center"><Run Text="Difference"/></TextBlock>
- <TextBlock HorizontalAlignment="Center"><Run Text="Pos"/></TextBlock>
- </StackPanel>
- </Button>
- <!--Column2-->
- <Button Grid.Column="1" Grid.Row="0" HorizontalAlignment="Stretch" Margin="5" Height="auto"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners"
- Command="{Binding SelectAxisCommand}">
- <TextBlock><Run Text="#Motor1"/></TextBlock>
- </Button>
- <Button Background="{x:Null}" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" Height="auto"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners">
- <Button.InputBindings>
- <MouseBinding Gesture="LeftClick" Command="{Binding KeyInTargetPosCommand}" CommandParameter="Left"/>
- </Button.InputBindings>
- <TextBlock><Run Text="{Binding TargetPosLockLeft, StringFormat=0.000, FallbackValue=0.000}"/></TextBlock>
- </Button>
- <Button Background="{x:Null}" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Stretch" Margin="5" Height="auto"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners">
- <TextBlock><Run Text="{Binding CurrentLockLeft, StringFormat=0.000, FallbackValue=0.000}"/></TextBlock>
- </Button>
- <Button Background="{x:Null}" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Stretch" Margin="5" Height="auto"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners">
- <TextBlock><Run Text="{Binding DifferenceLockLeft, StringFormat=0.000, FallbackValue=0.000}"/></TextBlock>
- </Button>
- <!--Column3-->
- <Button Grid.Column="2" Grid.Row="0" HorizontalAlignment="Stretch" Margin="5" Height="auto"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners"
- Command="{Binding SelectAxisCommand}">
- <TextBlock><Run Text="#Motor2"/></TextBlock>
- </Button>
- <Button Background="{x:Null}" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" Height="auto"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners">
- <Button.InputBindings>
- <MouseBinding Gesture="RightClick" Command="{Binding KeyInTargetPosCommand}" CommandParameter="Left"/>
- </Button.InputBindings>
- <TextBlock><Run Text="{Binding TargetPosLockRight, StringFormat=0.000, FallbackValue=0.000}"/></TextBlock>
- </Button>
- <Button Background="{x:Null}" Grid.Column="2" Grid.Row="2" HorizontalAlignment="Stretch" Margin="5" Height="auto"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners">
- <TextBlock><Run Text="{Binding CurrentLockRight, StringFormat=0.000, FallbackValue=0.000}"/></TextBlock>
- </Button>
- <Button Background="{x:Null}" Grid.Column="2" Grid.Row="3" HorizontalAlignment="Stretch" Margin="5" Height="auto"
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners">
- <TextBlock><Run Text="{Binding DifferenceLockRight, StringFormat=0.000, FallbackValue=0.000}"/></TextBlock>
- </Button>
- <Button Margin="3" HorizontalAlignment="Stretch" Grid.Column="4" Grid.Row="1" Width="Auto" Height="Auto" BorderBrush="Gray" BorderThickness="2"
- Command="{Binding SelectPosCommand}"
- CommandParameter="Lock">
- <StackPanel>
- <TextBlock Text="Pos" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
- <TextBlock Text="Lock" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Button Margin="3" HorizontalAlignment="Stretch" Grid.Column="4" Grid.Row="2" Width="Auto" Height="Auto" BorderBrush="Gray" BorderThickness="2"
- Command="{Binding SelectPosCommand}"
- CommandParameter="UnLock">
- <StackPanel>
- <TextBlock Text="Pos" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
- <TextBlock Text="UnLock" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Border BorderBrush="#FF00FFD3" BorderThickness="2" Margin="7,98,101,-33" Grid.ColumnSpan="4" RenderTransformOrigin="0.5,0.5" Grid.Row="3">
- <Border.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="-1"/>
- <SkewTransform/>
- <RotateTransform/>
- <TranslateTransform/>
- </TransformGroup>
- </Border.RenderTransform>
- </Border>
- </Grid>
- <Grid Grid.Row="1">
- <StackPanel Margin="0,0,0,90" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
- <Button
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners"
- Margin="15"
- Height="auto"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- >
- <StackPanel>
- <TextBlock><Run Text="Limit(-)"/></TextBlock>
- </StackPanel>
- </Button>
- <materialDesign:Badged
- Badge="Current Pos"
- BadgeColorZoneMode="Dark"
- BadgePlacementMode="Top"
- BadgeForeground="Aqua"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Height="auto">
- <Button Margin="15" VerticalAlignment="Center" HorizontalAlignment="Center" Height="50" >
- <StackPanel>
- <TextBlock Text="0.000"/>
- </StackPanel>
- </Button>
- </materialDesign:Badged>
- <Button
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners"
- Margin="15"
- Height="auto"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <StackPanel>
- <TextBlock><Run Text="Limit(+)"/></TextBlock>
- </StackPanel>
- </Button>
- </StackPanel>
- <StackPanel Margin="30,0,0,50" Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Left">
- <Button
- Margin="5"
- Grid.Row="2"
- Grid.Column="1"
- HorizontalAlignment="Stretch"
- Height="auto">
- <StackPanel>
- <materialDesign:PackIcon Kind="ArrowLeftBoldCircleOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="30" Width="auto"/>
- <TextBlock><Run Text="Jog(-)"/></TextBlock>
- </StackPanel>
- </Button>
- <materialDesign:Badged
- Grid.Row="2"
- Grid.Column="2"
- Badge="Jog Velocity"
- BadgeColorZoneMode="Dark"
- BadgePlacementMode="Top"
- BadgeForeground="Aqua"
- VerticalAlignment="Center"
- HorizontalAlignment="Center">
- <Button Margin="15" VerticalAlignment="Center" HorizontalAlignment="Center" Height="60" Width="Auto" >
- <StackPanel>
- <TextBlock Text="0.000"/>
- </StackPanel>
- </Button>
- </materialDesign:Badged>
- <Button
- Margin="5"
- Grid.Row="2"
- Grid.Column="3"
- HorizontalAlignment="Stretch"
- Height="auto">
- <StackPanel>
- <materialDesign:PackIcon Kind="ArrowRightBoldCircleOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="30" Width="auto"/>
- <TextBlock><Run Text="Jog(+)"/></TextBlock>
- </StackPanel>
- </Button>
- </StackPanel>
- </Grid>
- </Grid>
- </Grid>
- <Grid Grid.Column="1" Background="#37474f">
- <StackPanel>
- <Button Margin="7,20" HorizontalAlignment="Stretch" Height="90" BorderBrush="Gray" BorderThickness="2" Command="{Binding AxisSelectCommand}"
- Style="{DynamicResource MaterialDesignRaisedButton}"
- materialDesign:ShadowAssist.ShadowDepth="Depth5">
- <StackPanel>
- <!--<materialDesign:PackIcon Kind="GearBox" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
- <TextBlock Text="Move To" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Button Margin="7,20" HorizontalAlignment="Stretch" Height="90" BorderBrush="Gray" BorderThickness="2" Command="{Binding AxisSelectCommand}"
- Style="{DynamicResource MaterialDesignRaisedButton}"
- materialDesign:ShadowAssist.ShadowDepth="Depth5">
- <StackPanel>
- <!--<materialDesign:PackIcon Kind="GearBox" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
- <TextBlock Text="Current" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
- <TextBlock Text="To Target" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- </StackPanel>
- </Grid>
- <Grid Grid.Column="2" HorizontalAlignment="Stretch" Background="#263238">
- <Border Margin="1" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
- <StackPanel>
- <Button Margin="5" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding ServoOnCommand}">
- <StackPanel>
- <materialDesign:PackIcon Kind="PowerSettings" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
- <TextBlock Text="Servo On" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Button Margin="5" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding ServoOffCommand}">
- <StackPanel>
- <materialDesign:PackIcon Kind="PowerPlugOff" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
- <TextBlock Text="Servo Off" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Button Margin="5" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding FaultResetCommand}">
- <StackPanel>
- <materialDesign:PackIcon Kind="CircleArrows" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
- <TextBlock Text="Fault Reset" VerticalAlignment="Stretch" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Button Margin="5" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2" Command="{Binding OriginCommand}">
- <StackPanel>
- <materialDesign:PackIcon Kind="Origin" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
- <TextBlock Text="Origin" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
- </StackPanel>
- </Button>
- <Button Margin="5" 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>
- <!--<StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,5,0,0">
- <Button x:Name="btnSend" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Margin="0,0,20,0" Height="25" Command="{Binding CloseDialogCommand}" CommandParameter="true" Content="확인" Background="#FF1368BD" Style="{StaticResource MaterialDesignRaisedButton}"/>
- -->
- <!--Style="{DynamicResource btn_Send}"-->
- <!--
- <Button x:Name="btnCancel" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Height="25" Content="취소" Command="{Binding CloseDialogCommand}" CommandParameter="false" Background="#FF1368BD" Style="{StaticResource MaterialDesignRaisedButton}"/>
- -->
- <!--Style="{DynamicResource btn_Close}"-->
- <!--
- </StackPanel>-->
- </Grid>
- </UserControl>
|