21 references to RepeatBehavior
PresentationCore (1)
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (1)
96return new RepeatBehavior(timeSpanValue);
PresentationCore.Tests (20)
System\Windows\Media\Animation\RepeatBehavior.Tests.cs (20)
55Assert.Throws<ArgumentOutOfRangeException>(() => new RepeatBehavior(duration)); 71RepeatBehavior behavior = new RepeatBehavior(duration); 89RepeatBehavior behavior = new RepeatBehavior(TimeSpan.FromSeconds(1)); 98RepeatBehavior behavior = new RepeatBehavior(TimeSpan.FromSeconds(1)); 161yield return new object[] { new RepeatBehavior(TimeSpan.FromSeconds(1)), new RepeatBehavior(TimeSpan.FromSeconds(1)), true }; 162yield return new object[] { new RepeatBehavior(TimeSpan.FromDays(3)), new RepeatBehavior(TimeSpan.FromDays(3)), true }; 163yield return new object[] { new RepeatBehavior(TimeSpan.FromSeconds(1111)), new RepeatBehavior(TimeSpan.FromSeconds(1111)), true }; 166yield return new object[] { new RepeatBehavior(TimeSpan.FromSeconds(1111)), new RepeatBehavior(TimeSpan.FromSeconds(1112)), false }; 167yield return new object[] { new RepeatBehavior(TimeSpan.FromSeconds(0)), new RepeatBehavior(TimeSpan.FromSeconds(8888)), false }; 168yield return new object[] { new RepeatBehavior(TimeSpan.FromDays(5)), new RepeatBehavior(TimeSpan.FromDays(7)), false }; 171yield return new object[] { new RepeatBehavior(1), new RepeatBehavior(TimeSpan.FromSeconds(1)), false }; 172yield return new object[] { new RepeatBehavior(1111), new RepeatBehavior(TimeSpan.FromSeconds(1112)), false }; 178yield return new object[] { RepeatBehavior.Forever, new RepeatBehavior(TimeSpan.FromSeconds(1112)), false }; 182yield return new object[] { RepeatBehavior.Forever, new RepeatBehavior(TimeSpan.Zero), false };