Table of Contents

Class IndexedItemOffsetMultiplierExtension

Namespace
HeBianGu.General.WpfControlLib
Assembly
HeBianGu.General.WpfControlLib.dll

Multiplies a time span unit by the index of an item in a list.

public class IndexedItemOffsetMultiplierExtension : MarkupExtension
Inheritance
IndexedItemOffsetMultiplierExtension
Inherited Members
Extension Methods

Remarks

Example usage is for a TransitioningContent to have a OffsetTime time delayed according to position in a list, so cascading animations can occur.

Constructors

IndexedItemOffsetMultiplierExtension(TimeSpan)

public IndexedItemOffsetMultiplierExtension(TimeSpan unit)

Parameters

unit TimeSpan

Properties

Unit

[ConstructorArgument("unit")]
public TimeSpan Unit { get; set; }

Property Value

TimeSpan

Methods

ProvideValue(IServiceProvider)

When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.

public override object ProvideValue(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

A service provider helper that can provide services for the markup extension.

Returns

object

The object value to set on the property where the extension is applied.