| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <UserControl x:Class="TeamAAS_VP.Views.Home.ChangeNozzle"
- 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:sys="clr-namespace:System;assembly=mscorlib"
- xmlns:enums="clr-namespace:TeamAAS_VP.Enums"
- xmlns:valRules="clr-namespace:TeamAAS_VP.Identity"
- xmlns:ext="clr-namespace:TeamAAS_VP.Extension"
- xmlns:c="clr-namespace:TeamAAS_VP.ValueConverter"
- xmlns:lex="http://wpflocalizeextension.codeplex.com"
- xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels.Home"
- lex:LocalizeDictionary.DesignCulture="zh-CN"
- lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
- lex:ResxLocalizationProvider.DefaultDictionary="Lang"
- mc:Ignorable="d"
- d:Background="White"
- d:DataContext="{d:DesignInstance Type=vm:ChangeNozzleViewModel}"
- prism:ViewModelLocator.AutoWireViewModel="True"
- FontFamily="{DynamicResource DefaultFont}">
- <prism:Dialog.WindowStyle>
- <Style TargetType="Window">
- <Setter Property="prism:Dialog.WindowStartupLocation"
- Value="CenterScreen" />
- <!--<Setter Property="WindowChrome.WindowChrome">
- <Setter.Value>
- <WindowChrome CaptionHeight="0"
- ResizeBorderThickness="1" />
- </Setter.Value>
- </Setter>-->
- <Setter Property="WindowStyle"
- Value="None" />
- <Setter Property="AllowDrop"
- Value="True" />
- <Setter Property="BorderThickness"
- Value="0" />
- <Setter Property="ShowInTaskbar"
- Value="False" />
- <Setter Property="SizeToContent"
- Value="WidthAndHeight" />
- <Setter Property="WindowState"
- Value="Normal" />
- <Setter Property="Topmost"
- Value="True" />
- </Style>
- </prism:Dialog.WindowStyle>
- <Grid Margin="16">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="0"
- Grid.Column="0"
- Text="当前吸嘴批号:"
- VerticalAlignment="Center"
- Margin="4" />
- <TextBlock Grid.Row="0"
- Grid.Column="1"
- Text="{Binding CurrentNozzleBatchNumber}"
- VerticalAlignment="Center"
- Margin="4" />
- <TextBlock Grid.Row="1"
- Grid.Column="0"
- Text="当前锁付次数:"
- VerticalAlignment="Center"
- Margin="4" />
- <TextBlock Grid.Row="1"
- Grid.Column="1"
- Text="{Binding CurrentLockCount}"
- VerticalAlignment="Center"
- Margin="4" />
- <TextBlock Grid.Row="2"
- Grid.Column="0"
- Text="上次更换时间:"
- VerticalAlignment="Center"
- Margin="4" />
- <TextBlock Grid.Row="2"
- Grid.Column="1"
- Text="{Binding LastChangeTime}"
- VerticalAlignment="Center"
- Margin="4" />
- <TextBlock Grid.Row="3"
- Grid.Column="0"
- Text="新吸嘴批号:"
- VerticalAlignment="Center"
- Margin="4" />
- <TextBox Grid.Row="3"
- Grid.Column="1"
- MinWidth="150"
- Text="{Binding NewNozzleBatchNumber,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
- Margin="4" />
- <StackPanel Grid.Row="4"
- Grid.ColumnSpan="2"
- Orientation="Horizontal"
- HorizontalAlignment="Right"
- Margin="4">
- <Button Style="{StaticResource MaterialDesignRaisedButton}"
- Content="更换"
- Command="{Binding ReplaceCommand}"
- Margin="4" />
- <Button Style="{StaticResource MaterialDesignRaisedButton}"
- Content="关闭"
- Command="{Binding CloseCommand}"
- Margin="4" />
- </StackPanel>
- </Grid>
- </UserControl>
|