| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <UserControl x:Class="OHV.Module.Interactivity.PopUp.ServoConfigView"
- 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="1000"
- 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"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <Grid Margin="15,15" Background="#37474f">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <Border Margin="5" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
- <Button Background="{x:Null}" Foreground="Orange" Margin="10,10,568,226" Height="Auto">
- <TextBlock Text="Drive" FontSize="30"/>
- </Button>
- <StackPanel Orientation="Horizontal"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <StackPanel Orientation="Vertical"
- VerticalAlignment="Center">
- <Button Content="Name" Background="{x:Null}" FontSize="20"/>
- <Button Content="ID" Background="{x:Null}" FontSize="20"/>
- <Button Content="IP" Background="{x:Null}" FontSize="20"/>
- <Button Content="Scale" Background="{x:Null}" FontSize="20"/>
- </StackPanel>
- <StackPanel Orientation="Vertical"
- VerticalAlignment="Center">
- <Button Content="{Binding DriveName, FallbackValue=OHV_DRIVE}" FontSize="20" Background="{x:Null}"/>
- <Button Content="{Binding DriveID, FallbackValue=Drive}" FontSize="20" Background="{x:Null}"/>
- <Button Content="{Binding DriveIP, FallbackValue=192.168.0.1}" FontSize="20" Background="{x:Null}"/>
- <Button Content="{Binding DriveScale, FallbackValue=0.001}" FontSize="20" Background="{x:Null}"/>
- </StackPanel>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1">
- <Border Margin="5" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
- <Button Background="{x:Null}" Foreground="Orange" Margin="10,10,568,226" Height="Auto">
- <TextBlock Text="Lock Servo" FontSize="30"/>
- </Button>
- <StackPanel Orientation="Horizontal"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <StackPanel Orientation="Vertical"
- VerticalAlignment="Center">
- <Button Content="Name" Background="{x:Null}" FontSize="20" Height="Auto"/>
- <Button Content="ID" Background="{x:Null}" FontSize="20" Height="Auto"/>
- <Button Content="IP" Background="{x:Null}" FontSize="20" Height="Auto"/>
- <Button Content="Scale" Background="{x:Null}" FontSize="20" Height="Auto"/>
- </StackPanel>
- <StackPanel Orientation="Vertical"
- VerticalAlignment="Center">
- <Button Content="{Binding LockLeftName, FallbackValue=Axis_CarrierLock_Left}" Background="{x:Null}" FontSize="20" Height="Auto"/>
- <Button Content="{Binding LockLeftID, FallbackValue=1}" Background="{x:Null}" FontSize="20" Height="Auto"/>
- <Button Content="{Binding LockLeftIP, FallbackValue=100.100.100.20}" Background="{x:Null}" FontSize="20" Height="Auto" />
- <Button Content="{Binding LockLeftScale, FallbackValue=0.001}" Background="{x:Null}" FontSize="20" Height="Auto"/>
- </StackPanel>
- <StackPanel Orientation="Vertical"
- VerticalAlignment="Center">
- <Button Content="{Binding LockRightName, FallbackValue=Axis_CarrierLock_Right}" FontSize="20" Background="{x:Null}" Height="Auto"/>
- <Button Content="{Binding LockRightID, FallbackValue=2}" FontSize="20" Background="{x:Null}" Height="Auto"/>
- <Button Content="{Binding LockRightIP, FallbackValue=100.100.100.21}" FontSize="20" Background="{x:Null}" Height="Auto"/>
- <Button Content="{Binding LockRightScale, FallbackValue=0.001}" FontSize="20" Background="{x:Null}" Height="Auto"/>
- </StackPanel>
- </StackPanel>
- </Grid>
- <!--<Border Margin="2,101,0,10" BorderBrush="#FF00FFD3"
- BorderThickness="1" VerticalAlignment="Stretch"
- HorizontalAlignment="Stretch" Grid.Column="1"
- Grid.ColumnSpan="3" Grid.RowSpan="2"/>
- <Button
- Style="{StaticResource MaterialDesignRaisedButton}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="MaterialDesignRaisedButton with Round Corners"
- Margin="10,20,10,20"
- Grid.Row="1"
- Grid.Column="1"
- Height="auto"
- HorizontalAlignment="Stretch">
- <StackPanel>
- <TextBlock><Run Text="Limit(-)"/></TextBlock>
- </StackPanel>
- </Button>
- <materialDesign:Badged
- Grid.Row="1"
- Grid.Column="2"
- 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="10,20,10,20"
- Grid.Row="1"
- Grid.Column="3"
- Height="auto"
- HorizontalAlignment="Stretch">
- <StackPanel>
- <TextBlock><Run Text="Limit(-)"/></TextBlock>
- </StackPanel>
- </Button>
- <Button
- Margin="5"
- Grid.Row="2"
- Grid.Column="1"
- HorizontalAlignment="Stretch"
- Height="auto">
- <StackPanel>
- <materialDesign:PackIcon Kind="ArrowLeftBoldCircleOutline" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" 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="42" Width="auto"/>
- <TextBlock><Run Text="Jog(+)"/></TextBlock>
- </StackPanel>
- </Button>-->
- </Grid>
- </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 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>
|