361 lines
24 KiB
XML

<UserControl x:Class="WeldingCommon.Views.UCMainRecipe"
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:WeldingCommon.Views"
xmlns:usercontrols="clr-namespace:AuroraUIComponent.UserControls;assembly=AuroraUIComponent"
xmlns:uiconverter="clr-namespace:AuroraUIComponent.UIConverter;assembly=AuroraUIComponent"
xmlns:uibehavior="clr-namespace:AuroraUIComponent.UserControls.Behavior;assembly=AuroraUIComponent"
xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors"
xmlns:conv="clr-namespace:WeldingCommon.Views"
mc:Ignorable="d"
x:Name="uc"
d:DataContext="{d:DesignInstance Type=local:UCMainRecipeViewModel}"
d:DesignHeight="1000" d:DesignWidth="1000">
<UserControl.Resources>
<conv:EnumToBooleanConverter x:Key="EnumToBooleanConverter"/>
</UserControl.Resources>
<behavior:Interaction.Triggers>
<behavior:PropertyChangedTrigger Binding="{Binding IsVisible, ElementName=uc}">
<behavior:InvokeCommandAction Command="{Binding CMD_VisibleChanged}" CommandParameter="{Binding IsVisible, ElementName=uc}"/>
</behavior:PropertyChangedTrigger>
</behavior:Interaction.Triggers>
<Grid IsEnabled="{Binding IsManualStatus}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="0.6*"/>
<RowDefinition Height="0.6*"/>
<RowDefinition Height="0.6*"/>
<RowDefinition Height="0.6*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<!--Laser Parameter-->
<GroupBox Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Header="Laser Parameter" Margin="3">
<UniformGrid Columns="1">
<usercontrols:UCKeyValue
KeyText="Straight Center Power" Value="{Binding Recipe.StraightParam.CorePowerW}" Unit="W"
KeyTextFgColor="Black" KeyTextBgColor="SandyBrown" KeyTextSize="20" KeyTextWidth="1*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="[RMS] 용접 레이저 라인 출력 Core"/>
<usercontrols:UCKeyValue
KeyText="Straight Ring Power" Value="{Binding Recipe.StraightParam.RingPowerW}" Unit="W"
KeyTextFgColor="Black" KeyTextBgColor="SandyBrown" KeyTextSize="20" KeyTextWidth="1*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="[RMS] 용접 레이저 라인 출력 Ring"/>
<usercontrols:UCKeyValue
KeyText="Curve Center Power" Value="{Binding Recipe.CurveParam.CorePowerW}" Unit="W"
KeyTextFgColor="Black" KeyTextBgColor="SandyBrown" KeyTextSize="20" KeyTextWidth="1*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="[RMS] 용접 레이저 코너 출력 Core"/>
<usercontrols:UCKeyValue
KeyText="Curve Ring Power" Value="{Binding Recipe.CurveParam.RingPowerW}" Unit="W"
KeyTextFgColor="Black" KeyTextBgColor="SandyBrown" KeyTextSize="20" KeyTextWidth="1*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="[RMS] 용접 레이저 코너 출력 Ring"/>
</UniformGrid>
</GroupBox>
<!-- Motion Parameter -->
<GroupBox Grid.Row="0" Grid.Column="1" Grid.RowSpan="2" Header="Whole Parameter" Margin="3">
<UniformGrid Columns="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<usercontrols:UCKeyValue
KeyText="Curve Velocity" Grid.Row ="0" Value="{Binding Recipe.CurveParam.Velocity}" Unit="mm/s"
KeyTextFgColor="Black" KeyTextBgColor="SandyBrown" KeyTextSize="20" KeyTextWidth="1*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="[RMS] 용접 레이저 코너 가공 속도"/>
<usercontrols:UCKeyValue
KeyText="Straight Velocity" Grid.Row ="1" Value="{Binding Recipe.StraightParam.Velocity}" Unit="mm/s"
KeyTextFgColor="Black" KeyTextBgColor="SandyBrown" KeyTextSize="20" KeyTextWidth="1*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="[RMS] 용접 레이저 라인 가공 속도"/>
<usercontrols:UCKeyValue
KeyText="Acceleration" Grid.Row ="2" Value="{Binding Recipe.WeldingAcc}" Unit="mm/s²"
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="20" KeyTextWidth="1*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3"/>
<usercontrols:UCKeyValue
KeyText="Axis Z Position" Grid.Row ="3" Value="{Binding Recipe.AxisZPosition}" Unit="mm"
KeyTextFgColor="Black" KeyTextBgColor="SandyBrown" KeyTextSize="20" KeyTextWidth="1*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="[RMS] 용접 레이저 용접 위치(Z-Axis)"/>
<usercontrols:UCKeyValue
KeyText="N2 Press MFC (0~200)" Grid.Row ="4" Value="{Binding Recipe.N2PressMFC}" Unit="L/min"
KeyTextFgColor="Black" KeyTextBgColor="SandyBrown" KeyTextSize="20" KeyTextWidth="1*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="[RMS] 용접 레이저 MFC Flow Rate &#10;공급단 UT에 따라 실제 유량과 다를 수 있습니다."
IsReadOnly="True" IsEnabled="False"/>
<usercontrols:UCKeyComboBoxOnOff
KeyText="Review Mode (not use laser)" Grid.Row ="5" ValueText="{Binding Recipe.IsReviewMode}"
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="20" KeyTextWidth="1*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
KeyHorizontalAlignment="Right"/>
</Grid>
</UniformGrid>
</GroupBox>
<GroupBox Grid.Column="0" Grid.Row="2" Grid.RowSpan="2" Header="On/Off(Ramping) Parameters" Margin="3">
<Grid x:Name="RampingGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<UniformGrid Grid.Column="0" Columns="1">
<usercontrols:UCKeyValue
KeyText="Start X Pos" Value="{Binding Recipe.StartPos.PosX}" Unit="mm"
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="용접 동작의 시작 X축 위치 &#10;(레이저가 나오지 않음)"/>
<usercontrols:UCKeyValue
KeyText="Start Y Pos" Value="{Binding Recipe.StartPos.PosY}" Unit="mm"
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="용접 동작의 시작 Y축 위치 &#10;(레이저가 나오지 않음)"/>
<usercontrols:UCKeyValue
KeyText="Laser On Position" Value="{Binding Recipe.LaserOnPosition}" Unit="mm"
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="레이저 출사 위치 &#10;(단축이 시작 위치인 경우 Y, 장축인 경우 X)">
<behavior:Interaction.Behaviors>
<uibehavior:BlinkHighlightBehavior
HighlightColor="Green"
DurationMillis="1000"
HoverSource="{Binding ElementName=btnRampingGuide}"
ToolTipSource="{x:Reference ttRampingGuide}" />
</behavior:Interaction.Behaviors>
</usercontrols:UCKeyValue>
<usercontrols:UCKeyValue
KeyText="Ramp On Overlab Dist" Value="{Binding Recipe.RampingOnOverlapDist}" Unit="mm"
KeyTextFgColor="Black" KeyTextBgColor="SandyBrown" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="[RMS] 용접 레이저 램핑 길이(Start) &#10;레이저 출사 위치부터의 Ramping 길이">
<behavior:Interaction.Behaviors>
<uibehavior:BlinkHighlightBehavior
HighlightColor="Blue"
DurationMillis="1000"
HoverSource="{Binding ElementName=btnRampingGuide}"
ToolTipSource="{x:Reference ttRampingGuide}" />
</behavior:Interaction.Behaviors>
</usercontrols:UCKeyValue>
<usercontrols:UCKeyValue
KeyText="Ramp On Start Power(0~10)" Value="{Binding Recipe.RampingOnStartPower}" Unit="V"
KeyTextFgColor="Black" KeyTextBgColor="SandyBrown" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="[RMS] 용접 레이저 램핑 출력(Start) &#10;Ramping을 시작하는 Voltage"/>
<Grid/>
</UniformGrid>
<UniformGrid Grid.Column="1" Columns="1">
<usercontrols:UCKeyValue
KeyText="End X Pos" Value="{Binding Recipe.EndPos.PosX}" Unit="mm"
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="용접 동작이 끝나는 X축 위치 &#10;(레이저가 꺼지지 않음)"/>
<usercontrols:UCKeyValue
KeyText="End Y Pos" Value="{Binding Recipe.EndPos.PosY}" Unit="mm"
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="용접 동작이 끝나는 Y축 위치 &#10;(레이저가 꺼지지 않음)"/>
<usercontrols:UCKeyValue
KeyText="Ramp Off Start Pos" Value="{Binding Recipe.RampingOffStartPos}" Unit="mm"
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="레이저 출사 종료 위치 &#10;(단축이 시작 위치인 경우 Y, 장축인 경우 X)">
<behavior:Interaction.Behaviors>
<uibehavior:BlinkHighlightBehavior
HighlightColor="Green"
DurationMillis="1000"
HoverSource="{Binding ElementName=btnRampingGuide}"
ToolTipSource="{x:Reference ttRampingGuide}" />
</behavior:Interaction.Behaviors>
</usercontrols:UCKeyValue>
<usercontrols:UCKeyValue
KeyText="Ramp Off Overlab Dist" Value="{Binding Recipe.RampingOffOverlapDist}" Unit="mm"
KeyTextFgColor="Black" KeyTextBgColor="SandyBrown" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="[RMS] 용접 레이저 램핑 길이(End) &#10;레이저 출사 종료 위치부터의 Ramping 길이">
<behavior:Interaction.Behaviors>
<uibehavior:BlinkHighlightBehavior
HighlightColor="Blue"
DurationMillis="1000"
HoverSource="{Binding ElementName=btnRampingGuide}"
ToolTipSource="{x:Reference ttRampingGuide}" />
</behavior:Interaction.Behaviors>
</usercontrols:UCKeyValue>
<usercontrols:UCKeyValue
KeyText="Ramp Off End Power(0~10)" Value="{Binding Recipe.RampingOffEndPower}" Unit="V"
KeyTextFgColor="Black" KeyTextBgColor="SandyBrown" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="[RMS] 용접 레이저 램핑 출력(End) &#10;Ramping을 끝내는 Voltage"/>
<StackPanel HorizontalAlignment="Right">
<Button x:Name="btnRampingGuide" Content="?" Width="40" Height="30" Margin="1" HorizontalAlignment="Center">
<Button.ToolTip>
<ToolTip x:Name="ttRampingGuide">
<StackPanel Orientation="Vertical">
<Image Width="900" Height="430" Source="{Binding LaserOnOffRamping}"/>
<TextBlock Text="Ramping Teaching Guide"/>
</StackPanel>
</ToolTip>
</Button.ToolTip>
</Button>
</StackPanel>
</UniformGrid>
</Grid>
</GroupBox>
<GroupBox Grid.Column="0" Grid.Row="4" Header="Position Parameter" Margin="3" Grid.RowSpan="2">
<Grid x:Name="RecipeCamView" Margin="0,5,0,5"/>
</GroupBox>
<GroupBox Grid.Column="2" Grid.Row="2" Header="Position Parameter" Margin="3" Grid.RowSpan="4">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="2.85*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="4*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<UniformGrid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Columns="2">
<usercontrols:UCKeyValue
KeyText="Arc Size 1" Value="{Binding Recipe.Arc1.Size}" Unit="mm"
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="용접 동작중 1번째 회전 반경"/>
<usercontrols:UCKeyValue
KeyText="Arc Size 2" Value="{Binding Recipe.Arc2.Size}" Unit="mm"
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="용접 동작중 2번째 회전 반경"/>
<usercontrols:UCKeyValue
KeyText="Arc Size 3" Value="{Binding Recipe.Arc3.Size}" Unit="mm"
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="용접 동작중 3번째 회전 반경"/>
<usercontrols:UCKeyValue
KeyText="Arc Size 4" Value="{Binding Recipe.Arc4.Size}" Unit="mm"
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="2*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="1*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="용접 동작중 4번째 회전 반경"/>
</UniformGrid>
<GroupBox Grid.Column="0" Grid.Row="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.1*"/>
<RowDefinition Height="2*"/>
</Grid.RowDefinitions>
<DataGrid Grid.Row="1" MinHeight="30" Margin="0 10 0 0" AutoGenerateColumns="False" HeadersVisibility="Column"
RowHeight="40" MinRowHeight="30" MinColumnWidth="50" ColumnWidth="*" SelectionUnit="FullRow"
x:Name="MainUnitDataGrid"
ItemsSource="{Binding Recipe.Units}">
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding Index}" IsReadOnly="True">
<DataGridTextColumn.Header>
<TextBlock Text="Index" ToolTip="Index"/>
</DataGridTextColumn.Header>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding PosX, StringFormat={}{0:0.###}mm}" IsReadOnly="True">
<DataGridTextColumn.Header>
<TextBlock Text="Position X" ToolTip="Position X[mm]" />
</DataGridTextColumn.Header>
</DataGridTextColumn>
<DataGridTextColumn Binding="{Binding PosY, StringFormat={}{0:0.###}mm}" IsReadOnly="True">
<DataGridTextColumn.Header>
<TextBlock Text="Position Y" ToolTip="Position Y[mm]" />
</DataGridTextColumn.Header>
</DataGridTextColumn>
<DataGridTemplateColumn>
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Button Content="Get Pos"
Command="{Binding DataContext.CMD_GetPosition, RelativeSource={RelativeSource AncestorType=DataGrid}}"
CommandParameter="{Binding}"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn>
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Button Content="Move Pos"
Command="{Binding DataContext.CMD_MovePosition, RelativeSource={RelativeSource AncestorType=DataGrid}}"
CommandParameter="{Binding}"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<RadioButton Grid.Column="0" Content="Y1 Use" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,0"
GroupName="YAxistype" IsChecked="{Binding Recipe.YAxisUseType, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Y1}"/>
<RadioButton Grid.Column="1" Content="Y2 Use" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,0"
GroupName="YAxistype" IsChecked="{Binding Recipe.YAxisUseType, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Y2}"/>
</Grid>
</Grid>
</GroupBox>
<Grid Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" Margin="5">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Button Content="?" Grid.Column="2" Width="40" Height="40" Margin="1" HorizontalAlignment="Center">
<Button.ToolTip>
<StackPanel Orientation="Vertical">
<Image Width="750" Height="580" Source="{Binding PositionSettingGuide}"/>
<TextBlock Text="Position Teaching Guide"/>
</StackPanel>
</Button.ToolTip>
</Button>
<usercontrols:UCKeyValue
KeyText="JogMm" Value="{Binding JogMm, FallbackValue = 0.05}" Grid.Row="1" Grid.ColumnSpan="3" Height="40"
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="10" KeyTextWidth="1*"
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="15" ValueTextWidth="3*"
KeyHorizontalAlignment="Right" DecimalPlaces="3" ToolTip="상대이동에 거리값 &#10;(최대 3mm)"/>
<Button Grid.Row="4" Grid.Column="1" Width="40" Height="40" Margin="1" Content="Y (+)" Command="{Binding CMD_YP}"/>
<Button Grid.Row="3" Grid.Column="2" Width="40" Height="40" Margin="1" Content="X (-)" Command="{Binding CMD_XM}"/>
<Button Grid.Row="3" Grid.Column="0" Width="40" Height="40" Margin="1" Content="X (+)" Command="{Binding CMD_XP}"/>
<Button Grid.Row="2" Grid.Column="1" Width="40" Height="40" Margin="1" Content="Y (-)" Command="{Binding CMD_YM}"/>
</Grid>
</Grid>
</GroupBox>
</Grid>
</UserControl>