星火微课系统客户端
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

AppUpdateWin.xaml 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <Window x:Class="XHWK.WKTool.AppUpdateWin"
  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:XHWK.WKTool" xmlns:Views="clr-namespace:Common.system;assembly=Common"
  7. mc:Ignorable="d"
  8. Title="AppUpdateWin" Width="480"
  9. Height="330"
  10. AllowsTransparency="True"
  11. Background="Transparent"
  12. MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
  13. ShowInTaskbar="False"
  14. Topmost="True"
  15. WindowStartupLocation="CenterScreen"
  16. WindowStyle="None"
  17. >
  18. <Grid>
  19. <Views:ZJClippingBorder
  20. Margin="10"
  21. Background="#fafafa"
  22. CornerRadius="10">
  23. <Border.Effect>
  24. <DropShadowEffect
  25. BlurRadius="10"
  26. Opacity="1"
  27. ShadowDepth="0"
  28. Color="#cccccc" />
  29. </Border.Effect>
  30. </Views:ZJClippingBorder>
  31. <Views:ZJClippingBorder
  32. Margin="10"
  33. Background="#fafafa"
  34. CornerRadius="10">
  35. <Grid>
  36. <Grid.RowDefinitions>
  37. <RowDefinition Height="64" />
  38. <RowDefinition Height="*" />
  39. <RowDefinition Height="64" />
  40. </Grid.RowDefinitions>
  41. <StackPanel Grid.Row="0" Orientation="Horizontal">
  42. <Image
  43. Width="63"
  44. Margin="10,0,0,0"
  45. VerticalAlignment="Center"
  46. Source="/Images/APP.png" />
  47. <TextBlock
  48. Grid.Row="0"
  49. Margin="0,0,0,0"
  50. VerticalAlignment="Center"
  51. FontSize="26"
  52. Foreground="#333333"
  53. Text="应用更新" />
  54. </StackPanel>
  55. <ScrollViewer
  56. Name="content_sv"
  57. Grid.Row="1"
  58. Margin="10,10,10,10"
  59. HorizontalScrollBarVisibility="Disabled"
  60. VerticalScrollBarVisibility="Auto">
  61. <TextBlock
  62. x:Name="appmsg_tb"
  63. Margin="10,10,10,10"
  64. FontSize="14"
  65. Foreground="#333333"
  66. LineHeight="30"
  67. Text="{Binding appModel.versioncomm}" />
  68. </ScrollViewer>
  69. <UniformGrid
  70. x:Name="button_bottom"
  71. Grid.Row="2"
  72. Columns="2"
  73. Rows="1">
  74. <Button Cursor="Hand"
  75. Grid.Row="7"
  76. Grid.ColumnSpan="2"
  77. Width="190"
  78. Height="42"
  79. Click="Button_Click"
  80. Content="取消"
  81. FontSize="20"
  82. Foreground="White">
  83. <Button.Template>
  84. <ControlTemplate TargetType="{x:Type Button}">
  85. <Border
  86. BorderBrush="{TemplateBinding Control.BorderBrush}"
  87. BorderThickness="0"
  88. CornerRadius="21">
  89. <Border.Background>#E9E9E9</Border.Background>
  90. <ContentPresenter
  91. HorizontalAlignment="Center"
  92. VerticalAlignment="Center"
  93. Content="{TemplateBinding ContentControl.Content}" />
  94. </Border>
  95. </ControlTemplate>
  96. </Button.Template>
  97. </Button>
  98. <Button Cursor="Hand"
  99. Grid.Row="7"
  100. Grid.ColumnSpan="2"
  101. Width="190"
  102. Height="42"
  103. Click="gengxinClick"
  104. Content="更新"
  105. FontSize="20"
  106. Foreground="White">
  107. <Button.Template>
  108. <ControlTemplate TargetType="{x:Type Button}">
  109. <Border
  110. BorderBrush="{TemplateBinding Control.BorderBrush}"
  111. BorderThickness="0"
  112. CornerRadius="21">
  113. <Border.Background>#2D8CF0</Border.Background>
  114. <ContentPresenter
  115. HorizontalAlignment="Center"
  116. VerticalAlignment="Center"
  117. Content="{TemplateBinding ContentControl.Content}" />
  118. </Border>
  119. </ControlTemplate>
  120. </Button.Template>
  121. </Button>
  122. </UniformGrid>
  123. <Grid
  124. x:Name="progress_sp"
  125. Grid.Row="1"
  126. Grid.RowSpan="2"
  127. Visibility="Collapsed">
  128. <StackPanel
  129. Height="Auto"
  130. VerticalAlignment="Center"
  131. Orientation="Vertical">
  132. <TextBlock
  133. x:Name="parogress_tb"
  134. Margin="10,10,10,10"
  135. HorizontalAlignment="Center"
  136. FontSize="23"
  137. Foreground="#333333"
  138. LineHeight="30"
  139. Text="正在更新,已下载0%" />
  140. <Views:ZJClippingBorder
  141. Height="12"
  142. Margin="20,20,20,20"
  143. CornerRadius="6"
  144. SnapsToDevicePixels="True">
  145. <ProgressBar
  146. x:Name="mprogress"
  147. BorderThickness="0"
  148. Foreground="#2D8CF0"
  149. Maximum="100"
  150. Minimum="0" />
  151. </Views:ZJClippingBorder>
  152. </StackPanel>
  153. </Grid>
  154. </Grid>
  155. </Views:ZJClippingBorder>
  156. </Grid>
  157. </Window>