星火微课系统客户端
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.

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