Skip to content

Commit b2295c9

Browse files
authored
Merge pull request #8 from yanjinhuagood/main
update in nuget
2 parents 7cc1c9b + 193db37 commit b2295c9

File tree

4 files changed

+27
-69
lines changed

4 files changed

+27
-69
lines changed

UI/WPFDevelopers/Upgrade/Upgrade.WPF/MainWindow.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System.Windows;
22
using Upgrade.WPF.Views;
3+
using WPFDevelopers.Helpers;
34
using MessageBox = WPFDevelopers.Controls.MessageBox;
45

56
namespace Upgrade.WPF
@@ -17,7 +18,7 @@ public MainWindow()
1718

1819
private void BtnUpgrade1_Click(object sender, System.Windows.RoutedEventArgs e)
1920
{
20-
new UpgradeWindow().ShowDialog();
21+
new UpgradeWindow().MaskShowDialog();
2122
}
2223
private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
2324
{

UI/WPFDevelopers/Upgrade/Upgrade.WPF/Upgrade.WPF.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<Content Include="WPFDevelopers.ico" />
1616
</ItemGroup>
1717
<ItemGroup>
18-
<PackageReference Include="WPFDevelopers" Version="0.0.0.1" />
18+
<PackageReference Include="WPFDevelopers" Version="1.1.0.3-preview" />
1919
</ItemGroup>
2020
<ItemGroup>
2121
<Resource Include="GeneralUpdate.png" />

UI/WPFDevelopers/Upgrade/Upgrade.WPF/Views/UpgradeWindow.xaml

Lines changed: 24 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -12,81 +12,42 @@
1212
BorderBrush="Transparent"
1313
BorderThickness="0"
1414
Icon="/GeneralUpdate.png"
15-
NoChrome="True"
1615
ResizeMode="NoResize"
1716
TitleBackground="{DynamicResource WD.BackgroundSolidColorBrush}"
1817
TitleHeight="30"
1918
WindowStartupLocation="CenterScreen"
2019
WindowStyle="ToolWindow"
2120
mc:Ignorable="d">
22-
<wd:Window.TitleBar>
23-
<Grid Height="40" VerticalAlignment="Center">
24-
<Grid.ColumnDefinitions>
25-
<ColumnDefinition Width="Auto" />
26-
<ColumnDefinition Width="*" />
27-
<ColumnDefinition Width="Auto" MinWidth="30" />
28-
</Grid.ColumnDefinitions>
29-
<Image
30-
Width="20"
31-
Height="20"
32-
Margin="4,0"
33-
Source="/GeneralUpdate.png" />
34-
<TextBlock
35-
Grid.Column="1"
36-
VerticalAlignment="Center"
37-
FontSize="14"
38-
Foreground="{StaticResource WD.SecondaryTextSolidColorBrush}"
39-
IsHitTestVisible="False"
40-
Text="General Update 01 客户端升级" />
41-
<Button
42-
x:Name="CloseButton"
43-
Grid.Column="2"
44-
Width="30"
45-
Height="30"
46-
HorizontalAlignment="Right"
47-
Click="CloseButton_Click"
48-
Style="{StaticResource WD.WindowButtonStyle}"
49-
ToolTip="关闭">
50-
<wd:PathIcon
51-
Width="10"
52-
Height="10"
53-
Kind="WindowClose" />
54-
</Button>
55-
</Grid>
56-
</wd:Window.TitleBar>
5721
<Grid>
5822
<Grid.RowDefinitions>
5923
<RowDefinition Height="20" />
6024
<RowDefinition />
6125
<RowDefinition />
6226
</Grid.RowDefinitions>
63-
<Border
64-
Grid.Row="1"
65-
HorizontalAlignment="Center"
66-
VerticalAlignment="Center">
67-
<wd:SmallPanel>
68-
<!--<Image
69-
x:Name="PART_Image"
70-
Width="100"
71-
Height="100"
72-
Source="/GeneralUpdate.png"
73-
Stretch="Uniform" />-->
74-
<wd:BreathLamp
75-
Width="140"
76-
Height="140"
77-
GradientStopColor1="#FF00cec9"
78-
GradientStopColor2="#2000cec9"
79-
IsLampStart="True"
80-
LampEffect="Streamer">
81-
<Ellipse Width="100" Height="100">
82-
<Ellipse.Fill>
83-
<ImageBrush ImageSource="pack://application:,,,/GeneralUpdate.png" />
84-
</Ellipse.Fill>
85-
</Ellipse>
86-
</wd:BreathLamp>
87-
<wd:CircularProgressBar x:Name="PART_Slider" Value="{Binding ElementName=CirularSlider, Path=Value}" />
88-
</wd:SmallPanel>
89-
</Border>
27+
<Grid Grid.Row="1">
28+
<wd:BreathLamp
29+
Width="150"
30+
Height="150"
31+
GradientStopColor1="#FF00cec9"
32+
GradientStopColor2="#2000cec9"
33+
IsLampStart="True"
34+
LampEffect="Streamer" />
35+
<Image
36+
x:Name="PART_Image"
37+
Width="110"
38+
Height="110"
39+
Source="/GeneralUpdate.png"
40+
Stretch="Uniform" />
41+
<wd:CircleProgressBar
42+
x:Name="PART_Slider"
43+
Width="120"
44+
Height="120"
45+
Padding="3,3,0,0"
46+
BorderThickness="20"
47+
IsRound="True"
48+
Value="{Binding ElementName=CirularSlider, Path=Value}" />
49+
</Grid>
50+
9051
<Grid
9152
Grid.Row="2"
9253
Margin="0,0,0,30"

UI/WPFDevelopers/Upgrade/Upgrade.WPF/Views/UpgradeWindow.xaml.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ private void UpgradeWindow_Loaded(object sender, RoutedEventArgs e)
2222
StartDownload();
2323
}
2424

25-
private void CloseButton_Click(object sender, RoutedEventArgs e)
26-
{
27-
Close();
28-
}
2925
private async void StartDownload()
3026
{
3127
for (double i = 0; i <= 100; i += 1)

0 commit comments

Comments
 (0)