RepeatBehaviorHelper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides basic utility methods for processing RepeatBehavior values. C# code should use members of RepeatBehavior instead.
public ref class RepeatBehaviorHelper sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class RepeatBehaviorHelper final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class RepeatBehaviorHelper
Public NotInheritable Class RepeatBehaviorHelper
- Inheritance
- Attributes
Properties
Forever |
Gets a static RepeatBehavior that represents the special "Forever" value. C# code should use RepeatBehaviorType.Forever instead. |
Methods
Equals(RepeatBehavior, RepeatBehavior) |
Determines whether two RepeatBehavior values have equivalent values. C# code should use the equality operator instead. |
FromCount(Double) |
Creates a new RepeatBehavior based on a repeat count. This corresponds to the intx form when provided as XAML attribute value. C# code should use RepeatBehavior(Double) instead. |
FromDuration(TimeSpan) |
Creates a new RepeatBehavior based on a timespan. C# code should use RepeatBehavior(TimeSpan) instead. |
GetHasCount(RepeatBehavior) |
Returns whether a specified RepeatBehavior has a RepeatBehaviorType of Count and a nonzero Count value. C# code should use HasCount instead. |
GetHasDuration(RepeatBehavior) |
Returns whether a specified RepeatBehavior has a RepeatBehaviorType of Duration and a nonzero Duration value. C# code should use HasDuration instead. |