Compare commits

...

2 Commits

3 changed files with 11 additions and 2 deletions

View File

@ -43,7 +43,7 @@ namespace Wpf_AiSportsMicrospace.Views.JumpRope
// 容忍时间(节拍误差) // 容忍时间(节拍误差)
public double _beatTolerance = 0.22; // ±150ms public double _beatTolerance = 0.24; // ±150ms
private int _totalDots = 0; private int _totalDots = 0;
// 滚动显示的节拍点集合 // 滚动显示的节拍点集合
public ObservableCollection<BeatItem> BeatDisplayLeft { get; set; } = new(); public ObservableCollection<BeatItem> BeatDisplayLeft { get; set; } = new();

View File

@ -6,7 +6,7 @@
xmlns:local="clr-namespace:Wpf_AiSportsMicrospace.Views" xmlns:local="clr-namespace:Wpf_AiSportsMicrospace.Views"
xmlns:gif="http://wpfanimatedgif.codeplex.com" xmlns:gif="http://wpfanimatedgif.codeplex.com"
WindowStyle="None" WindowStyle="None"
mc:Ignorable="d" WindowState="Maximized"> mc:Ignorable="d" WindowState="Maximized" MouseDoubleClick="Window_MouseDoubleClick">
<Grid> <Grid>
<!-- 过渡容器 --> <!-- 过渡容器 -->
<ContentControl x:Name="MainContent"/> <ContentControl x:Name="MainContent"/>

View File

@ -379,6 +379,15 @@ namespace Wpf_AiSportsMicrospace.Views
time3.Visibility = Visibility.Hidden; time3.Visibility = Visibility.Hidden;
num++; num++;
} }
private void Window_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
// 确认是左键双击
if (e.ChangedButton == MouseButton.Right)
{
Application.Current.Shutdown();
}
}
} }