ChangeHeader.xaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <UserControl x:Class="TeamAAS_VP.Views.Home.ChangeHeader"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:prism="http://prismlibrary.com/"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  8. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  9. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  10. xmlns:enums="clr-namespace:TeamAAS_VP.Enums"
  11. xmlns:valRules="clr-namespace:TeamAAS_VP.Identity"
  12. xmlns:ext="clr-namespace:TeamAAS_VP.Extension"
  13. xmlns:c="clr-namespace:TeamAAS_VP.ValueConverter"
  14. xmlns:lex="http://wpflocalizeextension.codeplex.com"
  15. xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels.Home"
  16. lex:LocalizeDictionary.DesignCulture="zh-CN"
  17. lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
  18. lex:ResxLocalizationProvider.DefaultDictionary="Lang"
  19. mc:Ignorable="d"
  20. d:Background="White"
  21. d:DataContext="{d:DesignInstance Type=vm:ChangeHeaderViewModel}"
  22. prism:ViewModelLocator.AutoWireViewModel="True"
  23. FontFamily="{DynamicResource DefaultFont}">
  24. <prism:Dialog.WindowStyle>
  25. <Style TargetType="Window">
  26. <Setter Property="prism:Dialog.WindowStartupLocation"
  27. Value="CenterScreen" />
  28. <!--<Setter Property="WindowChrome.WindowChrome">
  29. <Setter.Value>
  30. <WindowChrome CaptionHeight="0"
  31. ResizeBorderThickness="1" />
  32. </Setter.Value>
  33. </Setter>-->
  34. <Setter Property="WindowStyle"
  35. Value="None" />
  36. <Setter Property="AllowDrop"
  37. Value="True" />
  38. <Setter Property="BorderThickness"
  39. Value="0" />
  40. <Setter Property="ShowInTaskbar"
  41. Value="False" />
  42. <Setter Property="SizeToContent"
  43. Value="WidthAndHeight" />
  44. <Setter Property="WindowState"
  45. Value="Normal" />
  46. <Setter Property="Topmost"
  47. Value="True" />
  48. </Style>
  49. </prism:Dialog.WindowStyle>
  50. <Grid Margin="16">
  51. <Grid.RowDefinitions>
  52. <RowDefinition Height="Auto" />
  53. <RowDefinition Height="Auto" />
  54. <RowDefinition Height="Auto" />
  55. <RowDefinition Height="Auto" />
  56. <RowDefinition Height="Auto" />
  57. </Grid.RowDefinitions>
  58. <Grid.ColumnDefinitions>
  59. <ColumnDefinition Width="Auto" />
  60. <ColumnDefinition Width="*" />
  61. </Grid.ColumnDefinitions>
  62. <TextBlock Grid.Row="0"
  63. Grid.Column="0"
  64. Text="当前披头批号:"
  65. VerticalAlignment="Center"
  66. Margin="4" />
  67. <TextBlock Grid.Row="0"
  68. Grid.Column="1"
  69. Text="{Binding CurrentHeadBatchNumber}"
  70. VerticalAlignment="Center"
  71. Margin="4" />
  72. <TextBlock Grid.Row="1"
  73. Grid.Column="0"
  74. Text="当前锁付次数:"
  75. VerticalAlignment="Center"
  76. Margin="4" />
  77. <TextBlock Grid.Row="1"
  78. Grid.Column="1"
  79. Text="{Binding CurrentLockCount}"
  80. VerticalAlignment="Center"
  81. Margin="4" />
  82. <TextBlock Grid.Row="2"
  83. Grid.Column="0"
  84. Text="上次更换时间:"
  85. VerticalAlignment="Center"
  86. Margin="4" />
  87. <TextBlock Grid.Row="2"
  88. Grid.Column="1"
  89. Text="{Binding LastChangeTime}"
  90. VerticalAlignment="Center"
  91. Margin="4" />
  92. <TextBlock Grid.Row="3"
  93. Grid.Column="0"
  94. Text="新披头批号:"
  95. VerticalAlignment="Center"
  96. Margin="4" />
  97. <TextBox Grid.Row="3"
  98. Grid.Column="1"
  99. MinWidth="150"
  100. Text="{Binding NewHeadBatchNumber,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  101. Margin="4" />
  102. <StackPanel Grid.Row="4"
  103. Grid.ColumnSpan="2"
  104. Orientation="Horizontal"
  105. HorizontalAlignment="Right"
  106. Margin="4">
  107. <Button Style="{StaticResource MaterialDesignRaisedButton}"
  108. Content="更换"
  109. Command="{Binding ReplaceCommand}"
  110. Margin="4" />
  111. <Button Style="{StaticResource MaterialDesignRaisedButton}"
  112. Content="关闭"
  113. Command="{Binding CloseCommand}"
  114. Margin="4" />
  115. </StackPanel>
  116. </Grid>
  117. </UserControl>