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

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