| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <UserControl x:Class="TeamAAS_VP.Views.Calibration.CalibTool"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:wf="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
- xmlns:vp="clr-namespace:Cognex.VisionPro;assembly=Cognex.VisionPro.Controls"
- xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels.Calibration"
- xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
- xmlns:lex="http://wpflocalizeextension.codeplex.com"
- lex:LocalizeDictionary.DesignCulture="zh-CN"
- lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
- lex:ResxLocalizationProvider.DefaultDictionary="Lang"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- d:DataContext="{d:DesignInstance Type=vm:CalibToolViewModel}"
- d:Height="600"
- d:Width="1024"
- d:Background="White"
- MinHeight="500"
- MinWidth="500"
- FontFamily="{DynamicResource DefaultFont}">
- <prism:Dialog.WindowStyle>
- <Style TargetType="Window">
- <Setter Property="prism:Dialog.WindowStartupLocation"
- Value="CenterScreen" />
- <Setter Property="AllowDrop"
- Value="True" />
- <Setter Property="ShowInTaskbar"
- Value="True" />
- <!--<Setter Property="SizeToContent"
- Value="WidthAndHeight" />-->
- <!--<Setter Property="WindowState"
- Value="Maximized" />-->
- <Setter Property="Topmost"
- Value="True" />
- </Style>
- </prism:Dialog.WindowStyle>
- <materialDesign:DialogHost DialogTheme="Inherit"
- Identifier="CalibToolDialog">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <wf:WindowsFormsHost Grid.Column="0">
- <vp:CogRecordDisplay x:Name="display" />
- </wf:WindowsFormsHost>
- <StackPanel Grid.Row="1"
- Orientation="Horizontal"
- HorizontalAlignment="Center"
- Margin="0,10">
- <TextBlock Text="{lex:Loc 机器人旋转角度,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
- VerticalAlignment="Center" />
- <mah:NumericUpDown x:Name="MotorAmplitudeNumeric1"
- Style="{StaticResource MahApps.Styles.NumericUpDown.DataGrid.Editing}"
- BorderThickness="0,0,0,1"
- StringFormat="{}{0:N1} °"
- MinWidth="100"
- Value="{Binding Angle,Mode=TwoWay}"
- Margin="10,0" />
- </StackPanel>
- <Button Grid.Row="2"
- MinWidth="150"
- MaxWidth="250"
- Margin="10,10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- materialDesign:ButtonAssist.CornerRadius="10"
- Style="{StaticResource MaterialDesignRaisedButton}"
- Command="{Binding StartCalibCommand}">
- <StackPanel Orientation="Horizontal">
- <materialDesign:PackIcon Kind="CrosshairsGps" />
- <TextBlock Text="{lex:Loc 开始校准Tool}"
- Margin="5,0" />
- </StackPanel>
- </Button>
- <StackPanel Grid.Row="3"
- Orientation="Horizontal"
- VerticalAlignment="Center"
- HorizontalAlignment="Right">
- <Button Height="30"
- Content="{lex:Loc 确定}"
- materialDesign:ButtonAssist.CornerRadius="10"
- ToolTip="{lex:Loc 确定}"
- Command="{Binding ConfirmCommand}">
- </Button>
- <Button Height="30"
- Margin="20,0"
- materialDesign:ButtonAssist.CornerRadius="10"
- Style="{StaticResource MaterialDesignRaisedButton}"
- ToolTip="{lex:Loc 取消}"
- Command="{Binding CancelCommand}">
- <TextBlock Text="{lex:Loc 取消}" />
- </Button>
- </StackPanel>
- </Grid>
- </materialDesign:DialogHost>
- </UserControl>
|