ai优化12
This commit is contained in:
parent
daa1160c23
commit
a762d66b5a
@ -23,7 +23,7 @@ namespace Wpf_AiSportsMicrospace.MyUserControl
|
|||||||
private const double CardWidth = 368;
|
private const double CardWidth = 368;
|
||||||
private const double CardHeight = 534;
|
private const double CardHeight = 534;
|
||||||
private const double CardGap = 30; // 卡片之间水平间距
|
private const double CardGap = 30; // 卡片之间水平间距
|
||||||
private const double SlideDurationMs = 180; // 动画时长
|
private const double SlideDurationMs = 200; // 动画时长
|
||||||
private const double ProgressDurationMs = 2600;
|
private const double ProgressDurationMs = 2600;
|
||||||
|
|
||||||
public int SelectedIndex
|
public int SelectedIndex
|
||||||
@ -311,6 +311,7 @@ namespace Wpf_AiSportsMicrospace.MyUserControl
|
|||||||
Duration = new Duration(dur),
|
Duration = new Duration(dur),
|
||||||
EasingFunction = ease
|
EasingFunction = ease
|
||||||
};
|
};
|
||||||
|
Timeline.SetDesiredFrameRate(anim, 60);
|
||||||
Storyboard.SetTarget(anim, fe);
|
Storyboard.SetTarget(anim, fe);
|
||||||
Storyboard.SetTargetProperty(anim, new PropertyPath("(UIElement.RenderTransform).(TranslateTransform.X)"));
|
Storyboard.SetTargetProperty(anim, new PropertyPath("(UIElement.RenderTransform).(TranslateTransform.X)"));
|
||||||
sb.Children.Add(anim);
|
sb.Children.Add(anim);
|
||||||
@ -324,6 +325,7 @@ namespace Wpf_AiSportsMicrospace.MyUserControl
|
|||||||
Duration = new Duration(dur),
|
Duration = new Duration(dur),
|
||||||
EasingFunction = ease
|
EasingFunction = ease
|
||||||
};
|
};
|
||||||
|
Timeline.SetDesiredFrameRate(anim, 60);
|
||||||
Storyboard.SetTarget(anim, fe);
|
Storyboard.SetTarget(anim, fe);
|
||||||
Storyboard.SetTargetProperty(anim, new PropertyPath("Opacity"));
|
Storyboard.SetTargetProperty(anim, new PropertyPath("Opacity"));
|
||||||
sb.Children.Add(anim);
|
sb.Children.Add(anim);
|
||||||
@ -393,6 +395,7 @@ namespace Wpf_AiSportsMicrospace.MyUserControl
|
|||||||
Duration = new Duration(dur),
|
Duration = new Duration(dur),
|
||||||
EasingFunction = ease
|
EasingFunction = ease
|
||||||
};
|
};
|
||||||
|
Timeline.SetDesiredFrameRate(anim, 60);
|
||||||
Storyboard.SetTarget(anim, fe);
|
Storyboard.SetTarget(anim, fe);
|
||||||
Storyboard.SetTargetProperty(anim, new PropertyPath("(UIElement.RenderTransform).(TranslateTransform.X)"));
|
Storyboard.SetTargetProperty(anim, new PropertyPath("(UIElement.RenderTransform).(TranslateTransform.X)"));
|
||||||
sb.Children.Add(anim);
|
sb.Children.Add(anim);
|
||||||
@ -406,6 +409,7 @@ namespace Wpf_AiSportsMicrospace.MyUserControl
|
|||||||
Duration = new Duration(dur),
|
Duration = new Duration(dur),
|
||||||
EasingFunction = ease
|
EasingFunction = ease
|
||||||
};
|
};
|
||||||
|
Timeline.SetDesiredFrameRate(anim, 60);
|
||||||
Storyboard.SetTarget(anim, fe);
|
Storyboard.SetTarget(anim, fe);
|
||||||
Storyboard.SetTargetProperty(anim, new PropertyPath("Opacity"));
|
Storyboard.SetTargetProperty(anim, new PropertyPath("Opacity"));
|
||||||
sb.Children.Add(anim);
|
sb.Children.Add(anim);
|
||||||
|
|||||||
@ -35,7 +35,7 @@ namespace Wpf_AiSportsMicrospace
|
|||||||
private DateTime _lastMenuSlideTime = DateTime.MinValue;
|
private DateTime _lastMenuSlideTime = DateTime.MinValue;
|
||||||
private bool _menuWaveConsumed;
|
private bool _menuWaveConsumed;
|
||||||
private bool _isNavigating;
|
private bool _isNavigating;
|
||||||
private const int MenuSlideCooldownMs = 150;
|
private const int MenuSlideCooldownMs = 100;
|
||||||
|
|
||||||
public Home()
|
public Home()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user