Map.Controls/Utils/MapFlow.cs
(开头部分) 25KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Animation;
using System.Windows;
using System.Windows.Media;
using System.Windows.Shapes;
using System.Windows.Controls;
namespace Map.Controls
{
public class MapFlow
{
//所有的动画 都在这个方法里 AddPointToStoryboard
#region 成员变量
/// <summary>
/// 跑动的点里的Path的Data
/// </summary>
private string m_PointData;
/// <summary>
/// 点的运动速度 单位距离/秒
/// </summary>
private double m_Speed;
/// <summary>
/// 运动轨迹弧线的正弦角度
/// </summary>
private double m_Angle;
/// <summary>
/// 数据源
/// </summary>
private List<MapItem> m_Source;
/// <summary>
/// 故事版
/// </summary>
private Storyboard m_Sb = new Storyboard();
private Grid _grid_Animation = null;
private UserControl _mapc = null;
private Style _ParticlePathStyle = null;
#endregion
public MapFlow(StackPanel spnl_Radio, Grid grid_Animation, UserControl mapc, Style ParticlePathStyle)
{
//参数设置部分
m_PointData = "M244.5,98.5 L273.25,93.75 C278.03113,96.916667 277.52785,100.08333 273.25,103.25 z";
m_Speed = 50;
m_Angle = 15;
_mapc = mapc;
_grid_Animation = grid_Animation;
_ParticlePathStyle = ParticlePathStyle;
MakeData();
InitRadioButton(spnl_Radio);
AddAnimation(m_Source[0], _grid_Animation);
}
#region RadioButton点击
/// <summary>
/// RadioButton点击
后面还有 565 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
