DlgMark.xaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <Window x:Class="MV485.Dlg.DlgMark"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:MV485.Dlg"
  7. xmlns:mark="clr-namespace:MV485.Mark"
  8. mc:Ignorable="d"
  9. Background="WhiteSmoke"
  10. ResizeMode="CanResizeWithGrip"
  11. WindowStartupLocation="CenterOwner"
  12. ShowInTaskbar="False"
  13. Title="水表关键位置标定" Height="600" Width="640">
  14. <Grid Margin="10 10 10 0">
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="*" />
  17. <RowDefinition Height="40" />
  18. </Grid.RowDefinitions>
  19. <Border Grid.Row="0" BorderBrush="#D3D3D3" BorderThickness="1" Background="White">
  20. <Grid>
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="*" />
  23. <RowDefinition Height="40" />
  24. <RowDefinition Height="40" />
  25. </Grid.RowDefinitions>
  26. <Border Grid.Row="0" BorderBrush="#D3D3D3" BorderThickness="0 0 0 1" Background="White">
  27. <!--<mark:UCMark x:Name="ucMark" />-->
  28. <mark:UCMark1 x:Name="ucMark" />
  29. </Border>
  30. <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10 0 0 0">
  31. <TextBlock Text="表盘坐标 (左上、右下)" Width="150" FontSize="14px" VerticalAlignment="Center" />
  32. <TextBox x:Name="txtMeterRegion" Margin="6" Padding="2" FontSize="14px" Width="280"
  33. VerticalContentAlignment="Center" Text="111,223 123123,123 21321,12312 ,123" />
  34. <Button x:Name="btnWholeMeter" Content="整个表盘" Width="80" Margin="10 0 0 0" Height="28"
  35. Click="BtnWholeMeter_Click" FontSize="14px"/>
  36. </StackPanel>
  37. <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10 0 0 0">
  38. <TextBlock x:Name="tbFeature" Text="首尾指针同刻度坐标" Width="150" FontSize="14px" VerticalAlignment="Center" />
  39. <TextBox x:Name="txtFeatureRegion" Margin="6" Padding="2" FontSize="14px" Width="280"
  40. VerticalContentAlignment="Center" Text="121,321 321,312 223,11 231,23"/>
  41. </StackPanel>
  42. </Grid>
  43. </Border>
  44. <!--按钮区域-->
  45. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
  46. <Button x:Name="btnOK" Content="确定" Width="80" Height="26" FontSize="14px"
  47. HorizontalAlignment="Center" Margin="0 0 20 0" Click="BtnOK_Click"/>
  48. <Button x:Name="btnClose" Content="取消" Width="80" Height="26" FontSize="14px"
  49. VerticalAlignment="Center" HorizontalAlignment="Center" Click="BtnClose_Click"/>
  50. </StackPanel>
  51. </Grid>
  52. </Window>