| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <UserControl x:Class="TeamAAS_VP.Views.Product.FeederBlobParams"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:sys="clr-namespace:System;assembly=mscorlib"
- xmlns:uControl="clr-namespace:TeamAAS_VP.Controls"
- xmlns:wf="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels.Product"
- xmlns:vp="clr-namespace:Cognex.VisionPro.Blob;assembly=Cognex.VisionPro.Blob.Controls"
- 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:FeederBlobParamsViewModel}"
- d:Height="600"
- d:Width="1024"
- d:Background="White"
- FontFamily="{DynamicResource DefaultFont}">
- <prism:Dialog.WindowStyle>
- <Style TargetType="Window">
- <Setter Property="prism:Dialog.WindowStartupLocation"
- Value="CenterScreen" />
- <Setter Property="AllowDrop"
- Value="True" />
- <Setter Property="Height"
- Value="500" />
- <Setter Property="Width"
- Value="900" />
- <Setter Property="ShowInTaskbar"
- Value="True" />
- <!--<Setter Property="SizeToContent"
- Value="WidthAndHeight" />-->
- <!--<Setter Property="WindowState"
- Value="Maximized" />-->
- <Setter Property="Topmost"
- Value="True" />
- </Style>
- </prism:Dialog.WindowStyle>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <wf:WindowsFormsHost Grid.Column="0" Margin="0,0,0,35">
- <vp:CogBlobEditV2 x:Name="BlobEditV2"/>
- </wf:WindowsFormsHost>
- <Button Content="{lex:Loc 运行}"
- HorizontalAlignment="Left"
- VerticalAlignment="Bottom"
- Margin="5,0"
- Command="{Binding RunBlobToolCommand}" />
- <StackPanel Grid.Row="1"
- Orientation="Horizontal">
- <TextBlock Text="{lex:Loc 当前Blob总面积,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
- VerticalAlignment="Center"></TextBlock>
- <TextBlock Text="{Binding BlobTotalArea,StringFormat= {}{0:F1},Mode=TwoWay}"
- VerticalAlignment="Center" />
- <Button Content="{materialDesign:PackIcon Kind=RayStartArrow}"
- Margin="10,0,0,0"
- Command="{Binding SetCurrnetAreaCommand}"
- Background="Transparent"
- BorderBrush="Transparent"
- Foreground="LightSkyBlue" />
- <TextBlock Text="{lex:Loc 供料面积下限,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
- Foreground="Green"
- FontWeight="Bold"
- VerticalAlignment="Center"
- Margin="10,5,0,5" />
- <mah:NumericUpDown Grid.Row="3"
- Grid.Column="1"
- Minimum="0"
- Interval="10"
- Margin="0,5"
- Foreground="Green"
- StringFormat="{}{0:N0}"
- materialDesign:HintAssist.Hint="{lex:Loc 最小面积}"
- Value="{Binding MinArea,Mode=TwoWay}" />
- </StackPanel>
- <StackPanel Grid.Row="2"
- 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,20,5"
- materialDesign:ButtonAssist.CornerRadius="10"
- Style="{StaticResource MaterialDesignRaisedButton}"
- ToolTip="{lex:Loc 取消}"
- Command="{Binding CancelCommand}">
- <TextBlock Text="{lex:Loc 取消}" />
- </Button>
- </StackPanel>
- </Grid>
- </UserControl>
|