当前位置: 首页>>代码示例>>C#>>正文


C# FillBehavior类代码示例

本文整理汇总了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;
 }
开发者ID:deurell,项目名称:Curla,代码行数:7,代码来源:MatrixAnimation.cs

示例2: DoubleAnimation

 public DoubleAnimation(double from, double to, Duration duration, FillBehavior fillBehavior)
 {
   this.From = from;
   this.To = to;
   this.Duration = duration;
   this.FillBehavior = fillBehavior;
 }
开发者ID:npcomplete111,项目名称:MediaPortal-1,代码行数:7,代码来源:DoubleAnimation.cs

示例3: LinearGradientAnimation

 public LinearGradientAnimation(LinearGradientBrush toValue, Duration duration, FillBehavior fillBehavior)
     : this()
 {
     this.To = toValue;
     base.Duration = duration;
     base.FillBehavior = fillBehavior;
 }
开发者ID:jez9999,项目名称:Git-GUI,代码行数:7,代码来源:LinearGradientAnimation.cs

示例4: GridLengthAnimation

 public GridLengthAnimation(GridLength fromValue, GridLength toValue, Duration duration, FillBehavior fillBehavior)
 {
     From = fromValue;
     To = toValue;
     Duration = duration;
     FillBehavior = fillBehavior;
 }
开发者ID:jira-sarec,项目名称:ICSE-2012-TraceLab,代码行数:7,代码来源:GridLengthAnimation.cs

示例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;
 }
开发者ID:AuditoryBiophysicsLab,项目名称:ESME-Workbench,代码行数:8,代码来源:RangeAnimation.cs

示例6: Begin

 public void Begin(IRootClock rootClock)
 {
     this.rootClock = rootClock;
     VerifyRootClock();
     beginTime = rootClock.Time;
     currentFillBehavior = Timeline.FillBehavior;
     rootClock.AddClock(this);
     Tick(rootClock.Time);
 }
开发者ID:highzion,项目名称:Granular,代码行数:9,代码来源:TimelineClock.cs

示例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;
 }
开发者ID:aliaspilote,项目名称:TX52,代码行数:22,代码来源:AnimationHelper.cs

示例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;
 }
开发者ID:grandtiger,项目名称:wpf-shell,代码行数:13,代码来源:CornerRadiusAnimation.cs

示例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;
 }
开发者ID:JianwenSun,项目名称:cc,代码行数:13,代码来源:ByteAnimation.cs

示例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;
 }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:13,代码来源:RectAnimation.cs

示例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;
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:13,代码来源:ThicknessAnimation.cs

示例12: Int64Animation

 public Int64Animation(long fromValue, long toValue, System.Windows.Duration duration, FillBehavior fillBehavior)
 {
 }
开发者ID:asvishnyakov,项目名称:CodeContracts,代码行数:3,代码来源:System.Windows.Media.Animation.Int64Animation.cs

示例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;
 }
开发者ID:JianwenSun,项目名称:cc,代码行数:13,代码来源:DecimalAnimation.cs

示例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; 
 } 
开发者ID:sjyanxin,项目名称:WPFSource,代码行数:13,代码来源:Int16Animation.cs

示例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; 
 } 
开发者ID:sjyanxin,项目名称:WPFSource,代码行数:13,代码来源:Rotation3DAnimation.cs


注:本文中的FillBehavior类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。