星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AppUpdateWin.xaml 6.9KB

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