CPDFLocationControl.xaml 2.0 KB

12345678910111213141516171819202122232425262728293031
  1. <UserControl x:Class="Compdfkit_Tools.Common.CPDFLocationControl"
  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:Compdfkit_Tools.Common"
  7. mc:Ignorable="d"
  8. d:DesignHeight="92" d:DesignWidth="239"
  9. Loaded="UserControl_Loaded" x:Name="LocationControl">
  10. <Grid x:Name="Grid">
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="auto"></ColumnDefinition>
  13. <ColumnDefinition></ColumnDefinition>
  14. </Grid.ColumnDefinitions>
  15. <local:MatrixRadioControl x:Name="MatrixRadioControl" SelectedTag="{Binding SelectedTag, Mode=TwoWay}"></local:MatrixRadioControl>
  16. <Grid Grid.Column="1">
  17. <Grid.RowDefinitions>
  18. <RowDefinition></RowDefinition>
  19. <RowDefinition></RowDefinition>
  20. </Grid.RowDefinitions>
  21. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="4">
  22. <TextBlock Text="X" VerticalAlignment="Center" Margin="0,0,8,0"></TextBlock>
  23. <local:NumericUpDownControl x:Name="XNumericControl" Height="32" Width="90" Unit="mm" Text="{Binding HorizOffsetValue, Mode=TwoWay}" Minimum="0" Maximum="199"></local:NumericUpDownControl>
  24. </StackPanel>
  25. <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="4">
  26. <TextBlock Text="Y" VerticalAlignment="Center" Margin="0,0,8,0"></TextBlock>
  27. <local:NumericUpDownControl x:Name="YNumericControl" Height="32" Width="90" Unit="mm" Text="{Binding VertOffsetValue, Mode=TwoWay}" Minimum="0" Maximum="199"></local:NumericUpDownControl>
  28. </StackPanel>
  29. </Grid>
  30. </Grid>
  31. </UserControl>