本文整理汇总了C#中FillBehavior类的典型用法代码示例。如果您正苦于以下问题:C# FillBehavior类的具体用法?C# FillBehavior怎么用?C# FillBehavior使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FillBehavior类属于命名空间,在下文中一共展示了FillBehavior类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MatrixAnimation
public MatrixAnimation(Matrix fromValue, Matrix toValue, Duration duration, FillBehavior fillBehavior)
{
From = fromValue;
To = toValue;
Duration = duration;
FillBehavior = fillBehavior;
}
示例2: DoubleAnimation
public DoubleAnimation(double from, double to, Duration duration, FillBehavior fillBehavior)
{
this.From = from;
this.To = to;
this.Duration = duration;
this.FillBehavior = fillBehavior;
}
示例3: LinearGradientAnimation
public LinearGradientAnimation(LinearGradientBrush toValue, Duration duration, FillBehavior fillBehavior)
: this()
{
this.To = toValue;
base.Duration = duration;
base.FillBehavior = fillBehavior;
}
示例4: GridLengthAnimation
public GridLengthAnimation(GridLength fromValue, GridLength toValue, Duration duration, FillBehavior fillBehavior)
{
From = fromValue;
To = toValue;
Duration = duration;
FillBehavior = fillBehavior;
}
示例5: RangeAnimation
public RangeAnimation(Range from, Range to, Duration duration, FillBehavior fillBehavior = FillBehavior.Stop, IEasingFunction easingFunction = null)
{
From = from;
To = to;
Duration = duration;
FillBehavior = fillBehavior;
EasingFunction = easingFunction;
}
示例6: Begin
public void Begin(IRootClock rootClock)
{
this.rootClock = rootClock;
VerifyRootClock();
beginTime = rootClock.Time;
currentFillBehavior = Timeline.FillBehavior;
rootClock.AddClock(this);
Tick(rootClock.Time);
}
示例7: CreateDoubleAnimation
public static Storyboard CreateDoubleAnimation(double? from, double? to, double duration, string propertyName, FrameworkElement target, FillBehavior? fillBehavior = null, EventHandler<object> onCompleted = null)
{
var animation = new DoubleAnimation
{
From = from,
To = to,
Duration = new Duration(TimeSpan.FromMilliseconds(duration)),
EnableDependentAnimation = true ,
//FillBehavior = fillBehavior
//EasingFunction = new ExponentialEase() { EasingMode = EasingMode.EaseOut }
};
if (fillBehavior.HasValue)
animation.FillBehavior = fillBehavior.Value;
var sb = new Storyboard();
Storyboard.SetTarget(animation, target);
Storyboard.SetTargetProperty(animation, propertyName);
sb.Children.Add(animation);
if(onCompleted != null)
sb.Completed += onCompleted;
return sb;
}
示例8: CornerRadiusAnimation
/// <summary>
/// Creates a new CornerRadiusAnimation that will animate a
/// CornerRadius property from the "fromValue" parameter of this constructor
/// to the "toValue" parameter.
/// </summary>
public CornerRadiusAnimation(CornerRadius fromValue, CornerRadius toValue, Duration duration, FillBehavior fillBehavior)
: this()
{
From = fromValue;
To = toValue;
Duration = duration;
FillBehavior = fillBehavior;
}
示例9: ByteAnimation
/// <summary>
/// Creates a new ByteAnimation that will animate a
/// Byte property from the "fromValue" parameter of this constructor
/// to the "toValue" parameter.
/// </summary>
public ByteAnimation(Byte fromValue, Byte toValue, Duration duration, FillBehavior fillBehavior)
: this()
{
From = fromValue;
To = toValue;
Duration = duration;
FillBehavior = fillBehavior;
}
示例10: RectAnimation
/// <summary>
/// Creates a new RectAnimation that will animate a
/// Rect property from the "fromValue" parameter of this constructor
/// to the "toValue" parameter.
/// </summary>
public RectAnimation(Rect fromValue, Rect toValue, Duration duration, FillBehavior fillBehavior)
: this()
{
From = fromValue;
To = toValue;
Duration = duration;
FillBehavior = fillBehavior;
}
示例11: ThicknessAnimation
/// <summary>
/// Creates a new ThicknessAnimation that will animate a
/// Thickness property from the "fromValue" parameter of this constructor
/// to the "toValue" parameter.
/// </summary>
public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration, FillBehavior fillBehavior)
: this()
{
From = fromValue;
To = toValue;
Duration = duration;
FillBehavior = fillBehavior;
}
示例12: Int64Animation
public Int64Animation(long fromValue, long toValue, System.Windows.Duration duration, FillBehavior fillBehavior)
{
}
示例13: DecimalAnimation
/// <summary>
/// Creates a new DecimalAnimation that will animate a
/// Decimal property from the "fromValue" parameter of this constructor
/// to the "toValue" parameter.
/// </summary>
public DecimalAnimation(Decimal fromValue, Decimal toValue, Duration duration, FillBehavior fillBehavior)
: this()
{
From = fromValue;
To = toValue;
Duration = duration;
FillBehavior = fillBehavior;
}
示例14: Int16Animation
/// <summary>
/// Creates a new Int16Animation that will animate a
/// Int16 property from the "fromValue" parameter of this constructor
/// to the "toValue" parameter.
/// </summary>
public Int16Animation(Int16 fromValue, Int16 toValue, Duration duration, FillBehavior fillBehavior)
: this()
{
From = fromValue;
To = toValue;
Duration = duration;
FillBehavior = fillBehavior;
}
示例15: Rotation3DAnimation
/// <summary>
/// Creates a new Rotation3DAnimation that will animate a
/// Rotation3D property from the "fromValue" parameter of this constructor
/// to the "toValue" parameter.
/// </summary>
public Rotation3DAnimation(Rotation3D fromValue, Rotation3D toValue, Duration duration, FillBehavior fillBehavior)
: this()
{
From = fromValue;
To = toValue;
Duration = duration;
FillBehavior = fillBehavior;
}