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