42 instantiations of RepeatBehavior
PresentationCore (4)
System\Windows\Media\Animation\RepeatBehavior.cs (1)
143return new RepeatBehavior(RepeatBehaviorType.Forever);
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (2)
87return new RepeatBehavior(doubleValue); 96return new RepeatBehavior(timeSpanValue);
System\Windows\Media\Animation\Timeline.cs (1)
531new RepeatBehavior(1.0),
PresentationCore.Tests (36)
System\Windows\Media\Animation\RepeatBehavior.Tests.cs (36)
19Assert.Throws<ArgumentOutOfRangeException>(() => new RepeatBehavior(count)); 29RepeatBehavior behavior = new RepeatBehavior(count); 37RepeatBehavior behavior = new RepeatBehavior(1.0); 46RepeatBehavior behavior = new RepeatBehavior(1.0); 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)); 153yield return new object[] { new RepeatBehavior(1.0), new RepeatBehavior(1.0), true }; 154yield return new object[] { new RepeatBehavior(1111.1), new RepeatBehavior(1111.1), true }; 157yield return new object[] { new RepeatBehavior(1111.0), new RepeatBehavior(1112.0), false }; 158yield return new object[] { new RepeatBehavior(0.0), new RepeatBehavior(8888.2), false }; 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 }; 179yield return new object[] { RepeatBehavior.Forever, new RepeatBehavior(1112), false }; 182yield return new object[] { RepeatBehavior.Forever, new RepeatBehavior(TimeSpan.Zero), false }; 183yield return new object[] { RepeatBehavior.Forever, new RepeatBehavior(0.0), false };
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9234DefaultConstructor = delegate () { return new System.Windows.Media.Animation.RepeatBehavior(); },
System\Windows\Markup\KnownTypes.cs (1)
1494case KnownElements.RepeatBehavior: o = new System.Windows.Media.Animation.RepeatBehavior(); break;
67 references to RepeatBehavior
PresentationCore (30)
System\Windows\Media\Animation\Clock.cs (3)
1949RepeatBehavior repeatBehavior = _timeline.RepeatBehavior; 2480RepeatBehavior repeatBehavior = _timeline.RepeatBehavior; 2551Debug.Assert(repeatBehavior == RepeatBehavior.Forever); // Only other valid enum value
System\Windows\Media\Animation\ParallelTimeline.cs (1)
66public ParallelTimeline(TimeSpan? beginTime, Duration duration, RepeatBehavior repeatBehavior)
System\Windows\Media\Animation\RepeatBehavior.cs (12)
63/// Private constructor, serves for creation of <see cref="RepeatBehavior.Forever"/> only. 134/// Creates and returns a <see cref="RepeatBehavior"/> that indicates that a <see cref="Timeline"/> 137/// <value>A <see cref="RepeatBehavior"/> that indicates that a <see cref="Timeline"/> 139public static RepeatBehavior Forever 158return value is RepeatBehavior behavior && Equals(behavior); 166public bool Equals(RepeatBehavior repeatBehavior) 202public static bool Equals(RepeatBehavior repeatBehavior1, RepeatBehavior repeatBehavior2) 312public static bool operator ==(RepeatBehavior repeatBehavior1, RepeatBehavior repeatBehavior2) 323public static bool operator !=(RepeatBehavior repeatBehavior1, RepeatBehavior repeatBehavior2)
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (8)
78return RepeatBehavior.Forever; 114if ( value is RepeatBehavior 117RepeatBehavior repeatBehavior = (RepeatBehavior)value; 123if (repeatBehavior == RepeatBehavior.Forever) 125mi = typeof(RepeatBehavior).GetProperty("Forever"); 131mi = typeof(RepeatBehavior).GetConstructor(new Type[] { typeof(double) }); 137mi = typeof(RepeatBehavior).GetConstructor(new Type[] { typeof(TimeSpan) });
System\Windows\Media\Animation\Timeline.cs (4)
89protected Timeline(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior) 528typeof(RepeatBehavior), 541public RepeatBehavior RepeatBehavior 545return (RepeatBehavior)GetValue(RepeatBehaviorProperty);
System\Windows\Media\Animation\TimelineGroup.cs (1)
64protected TimelineGroup(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior)
System\Windows\Media\MediaTimeline.cs (1)
81public MediaTimeline(Nullable<TimeSpan> beginTime, Duration duration, RepeatBehavior repeatBehavior)
PresentationCore.Tests (22)
System\Windows\Media\Animation\RepeatBehavior.Tests.cs (22)
29RepeatBehavior behavior = new RepeatBehavior(count); 37RepeatBehavior behavior = new RepeatBehavior(1.0); 46RepeatBehavior behavior = new RepeatBehavior(1.0); 71RepeatBehavior behavior = new RepeatBehavior(duration); 89RepeatBehavior behavior = new RepeatBehavior(TimeSpan.FromSeconds(1)); 98RepeatBehavior behavior = new RepeatBehavior(TimeSpan.FromSeconds(1)); 106RepeatBehavior behavior = RepeatBehavior.Forever; 115RepeatBehavior behavior = RepeatBehavior.Forever; 124RepeatBehavior behavior1 = RepeatBehavior.Forever; 125RepeatBehavior behavior2 = RepeatBehavior.Forever; 132public void Compare_Instance_Value_Equals(RepeatBehavior behavior1, RepeatBehavior behavior2, bool outcome) 175yield return new object[] { RepeatBehavior.Forever, RepeatBehavior.Forever, true }; 178yield return new object[] { RepeatBehavior.Forever, new RepeatBehavior(TimeSpan.FromSeconds(1112)), false }; 179yield return new object[] { RepeatBehavior.Forever, new RepeatBehavior(1112), false }; 182yield return new object[] { RepeatBehavior.Forever, new RepeatBehavior(TimeSpan.Zero), false }; 183yield return new object[] { RepeatBehavior.Forever, new RepeatBehavior(0.0), false };
PresentationFramework (5)
System\Windows\Controls\ProgressBar.cs (1)
251RepeatBehavior = RepeatBehavior.Forever
System\windows\Documents\CaretElement.cs (1)
907RepeatBehavior = RepeatBehavior.Forever
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
614case 520: t = () => typeof(RepeatBehavior); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9231typeof(System.Windows.Media.Animation.RepeatBehavior),
System\Windows\Markup\KnownTypes.cs (1)
6068case KnownElements.RepeatBehavior: t = typeof(System.Windows.Media.Animation.RepeatBehavior); break;
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
129daukf.RepeatBehavior = RepeatBehavior.Forever; 239daukf.RepeatBehavior = RepeatBehavior.Forever;
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
92RepeatBehavior = RepeatBehavior.Forever
PresentationFramework.Aero2 (3)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
129daukf.RepeatBehavior = RepeatBehavior.Forever; 239daukf.RepeatBehavior = RepeatBehavior.Forever;
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
92RepeatBehavior = RepeatBehavior.Forever
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
110RepeatBehavior = RepeatBehavior.Forever
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
110RepeatBehavior = RepeatBehavior.Forever
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
110RepeatBehavior = RepeatBehavior.Forever
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
110RepeatBehavior = RepeatBehavior.Forever