星火微课系统客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

AppUpdateWin.xaml 6.4KB

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