提交
This commit is contained in:
parent
16e29e8d83
commit
534071ebc1
@ -165,7 +165,6 @@ namespace Wpf_AiSportsMicrospace.Views
|
|||||||
page.Arrange(new Rect(0, 0, page.DesiredSize.Width, page.DesiredSize.Height));
|
page.Arrange(new Rect(0, 0, page.DesiredSize.Width, page.DesiredSize.Height));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void SwitchPageWithMaskAnimation(UserControl newPage, bool fromRight, double durationSeconds = 1.2)
|
public void SwitchPageWithMaskAnimation(UserControl newPage, bool fromRight, double durationSeconds = 1.2)
|
||||||
{
|
{
|
||||||
if (MainContent.Content == newPage) return;
|
if (MainContent.Content == newPage) return;
|
||||||
@ -282,7 +281,7 @@ namespace Wpf_AiSportsMicrospace.Views
|
|||||||
|
|
||||||
private void Window_MouseDoubleClick(object sender, MouseButtonEventArgs e)
|
private void Window_MouseDoubleClick(object sender, MouseButtonEventArgs e)
|
||||||
{
|
{
|
||||||
// 确认是左键双击
|
// 确认是右键双击
|
||||||
if (e.ChangedButton == MouseButton.Right)
|
if (e.ChangedButton == MouseButton.Right)
|
||||||
{
|
{
|
||||||
Application.Current.Shutdown();
|
Application.Current.Shutdown();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user