feat: 按F5刷新自定义主页
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
<TextBlock x:Name="LabHint1" TextWrapping="Wrap" Margin="0,0,0,2" FontSize="13.5" />
|
||||
<TextBlock x:Name="LabHint2" TextWrapping="Wrap" Margin="0,0,0,2" FontSize="13.5" />
|
||||
</StackPanel>
|
||||
<StackPanel Focusable="True">
|
||||
<!-- 其他控件 -->
|
||||
</StackPanel>
|
||||
</local:MyCard>
|
||||
<local:MyCard Margin="0,0,0,15" Title="启动日志" x:Name="PanLog">
|
||||
<TextBlock x:Name="LabLog" Margin="20,38,20,18" TextTrimming="None" TextWrapping="Wrap" />
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
PanBack.ScrollToHome()
|
||||
PanScroll = PanBack '不知道为啥不能在 XAML 设置
|
||||
PanLog.Visibility = If(ModeDebug, Visibility.Visible, Visibility.Collapsed)
|
||||
'
|
||||
AddHandler Me.KeyDown, AddressOf PressF5
|
||||
'快照版提示
|
||||
#If BETA Then
|
||||
PanHint.Visibility = Visibility.Collapsed
|
||||
@@ -26,6 +28,12 @@
|
||||
''' <summary>
|
||||
''' 刷新自定义主页。
|
||||
''' </summary>
|
||||
Private Sub PressF5(sender As Object, e As KeyEventArgs)
|
||||
If e.Key = Key.F5 Then
|
||||
ForceRefresh()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub Refresh() Handles Me.Loaded
|
||||
RunInNewThread(
|
||||
Sub()
|
||||
|
||||
Reference in New Issue
Block a user