|
68 | 68 | <Run Text="版本更新" /> |
69 | 69 | </SelectableTextBlock> |
70 | 70 |
|
| 71 | + <!-- Release Notes --> |
| 72 | + <Border Height="150" |
| 73 | + Width="400" |
| 74 | + Background="{DynamicResource SemiColorFill0}" |
| 75 | + CornerRadius="6" |
| 76 | + Padding="10" |
| 77 | + IsVisible="{Binding Status, |
| 78 | + Converter={StaticResource EnumToBooleanConverter}, |
| 79 | + ConverterParameter={x:Static models:DownloadStatus.NotStarted}, |
| 80 | + Mode=OneWay}"> |
| 81 | + <ScrollViewer> |
| 82 | + <SelectableTextBlock Text="{Binding ReleaseNotes}" TextWrapping="Wrap" /> |
| 83 | + </ScrollViewer> |
| 84 | + </Border> |
| 85 | + |
71 | 86 | <!-- Status Text --> |
72 | 87 | <Panel> |
| 88 | + <SelectableTextBlock |
| 89 | + HorizontalAlignment="Center" |
| 90 | + IsVisible="{Binding Status, |
| 91 | + Converter={StaticResource EnumToBooleanConverter}, |
| 92 | + ConverterParameter={x:Static models:DownloadStatus.NotStarted}, |
| 93 | + Mode=OneWay}" |
| 94 | + Text="发现新版本,是否立即更新?" /> |
| 95 | + |
73 | 96 | <SelectableTextBlock |
74 | 97 | HorizontalAlignment="Center" |
75 | 98 | IsVisible="{Binding Status, |
|
98 | 121 | <!-- Controls --> |
99 | 122 | <StackPanel Orientation="Horizontal" Spacing="10" HorizontalAlignment="Center"> |
100 | 123 |
|
| 124 | + <!-- Start Update --> |
| 125 | + <Button |
| 126 | + Content="立即更新" |
| 127 | + Classes="Primary" |
| 128 | + Command="{Binding StartCommand}" |
| 129 | + IsVisible="{Binding Status, |
| 130 | + Converter={StaticResource EnumToBooleanConverter}, |
| 131 | + ConverterParameter={x:Static models:DownloadStatus.NotStarted}, |
| 132 | + Mode=OneWay}" /> |
| 133 | + |
| 134 | + <!-- Cancel Update --> |
| 135 | + <Button |
| 136 | + Content="暂不更新" |
| 137 | + Classes="Secondary" |
| 138 | + Command="{Binding CloseCommand}" |
| 139 | + IsVisible="{Binding Status, |
| 140 | + Converter={StaticResource EnumToBooleanConverter}, |
| 141 | + ConverterParameter={x:Static models:DownloadStatus.NotStarted}, |
| 142 | + Mode=OneWay}" /> |
| 143 | + |
101 | 144 | <!-- Stop / Cancel --> |
102 | 145 | <u:IconButton |
103 | 146 | Name="StopButton" |
|
0 commit comments