Table of Contents

Class Derived

Namespace
Bindables
Assembly
Bindables.dll

Provides methods to transform one or more bindables into derived bindables that automatically update when their sources change.

public static class Derived
Inheritance
Derived
Inherited Members

Methods

All(params IBindable<bool>[])

Creates a bindable that returns true when all the provided boolean bindables are true.

public static IBindable<bool> All(params IBindable<bool>[] properties)

Parameters

properties IBindable<bool>[]

The boolean bindables to evaluate.

Returns

IBindable<bool>

A bindable that updates automatically and returns true when all properties are true.

All(IEnumerable<IBindable<bool>>)

Creates a bindable that returns true when all the provided boolean bindables are true.

public static IBindable<bool> All(IEnumerable<IBindable<bool>> properties)

Parameters

properties IEnumerable<IBindable<bool>>

The boolean bindables to evaluate.

Returns

IBindable<bool>

A bindable that updates automatically and returns true when all properties are true.

Any(params IBindable<bool>[])

Creates a bindable that returns true when any of the provided boolean bindables is true.

public static IBindable<bool> Any(params IBindable<bool>[] properties)

Parameters

properties IBindable<bool>[]

The boolean bindables to evaluate.

Returns

IBindable<bool>

A bindable that updates automatically and returns true when any property is true.

Any(IEnumerable<IBindable<bool>>)

Creates a bindable that returns true when any of the provided boolean bindables is true.

public static IBindable<bool> Any(IEnumerable<IBindable<bool>> properties)

Parameters

properties IEnumerable<IBindable<bool>>

The boolean bindables to evaluate.

Returns

IBindable<bool>

A bindable that updates automatically and returns true when any property is true.

AnyBindablePropertyChanged(object)

Creates an IBindable that notifies changes whenever any public IBindable property of the object changes.

public static IBindable AnyBindablePropertyChanged(object obj)

Parameters

obj object

The source object to check for bindable properties.

Returns

IBindable

A derived bindable that changes any bindable properties change.

AnyChanged(IEnumerable<IBindable>)

Creates an IBindable that notifies changes whenever any of the argument bindables change.

public static IBindable AnyChanged(IEnumerable<IBindable> bindables)

Parameters

bindables IEnumerable<IBindable>

The source bindables to check for changes.

Returns

IBindable

A derived bindable that changes any source bindable changes.

Derive<TSource, TDerived>(IBindable<TSource>, Func<TSource, BindableList<TDerived>>)

Extension method that creates a derived list by transforming the bindables' value into a BindableList. This is a convenient alternative to calling Derived.From.

public static DerivedList<TDerived> Derive<TSource, TDerived>(this IBindable<TSource> bindable, Func<TSource, BindableList<TDerived>> transform)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

transform Func<TSource, BindableList<TDerived>>

The transformation function.

Returns

DerivedList<TDerived>

A derived list that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TDerived

The type of items in the derived list.

Derive<TSource, TDerived>(IBindable<TSource>, Func<TSource, Bindable<TDerived>>)

Extension method that creates a derived bindable by transforming the bindables' value into a Bindable. This is a convenient alternative to calling Derived.From.

public static Derived<TDerived> Derive<TSource, TDerived>(this IBindable<TSource> bindable, Func<TSource, Bindable<TDerived>> transform)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

transform Func<TSource, Bindable<TDerived>>

The transformation function.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TDerived

The type of the derived bindable value.

Derive<TSource, TDerived>(IBindable<TSource>, Func<TSource, IBindableList<TDerived>>)

Extension method that creates a derived list by transforming the bindables' value into a BindableList. This is a convenient alternative to calling Derived.From.

public static DerivedList<TDerived> Derive<TSource, TDerived>(this IBindable<TSource> bindable, Func<TSource, IBindableList<TDerived>> transform)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

transform Func<TSource, IBindableList<TDerived>>

The transformation function.

Returns

DerivedList<TDerived>

A derived list that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TDerived

The type of items in the derived list.

Derive<TSource, TDerived>(IBindable<TSource>, Func<TSource, IBindable<TDerived>>)

Extension method that creates a derived bindable by transforming the bindables' value into a Bindable. This is a convenient alternative to calling Derived.From.

public static Derived<TDerived> Derive<TSource, TDerived>(this IBindable<TSource> bindable, Func<TSource, IBindable<TDerived>> transform)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

transform Func<TSource, IBindable<TDerived>>

The transformation function.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TDerived

The type of the derived bindable value.

Derive<TSource, TDerived>(IBindable<TSource>, Func<TSource, TDerived>)

Extension method that creates a derived bindable by transforming the bindables' value. This is a convenient alternative to calling Derived.From and is commonly used for simple transformations.

public static Derived<TDerived> Derive<TSource, TDerived>(this IBindable<TSource> bindable, Func<TSource, TDerived> transform)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

transform Func<TSource, TDerived>

The transformation function.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TDerived

The type of the derived bindable value.

Derive<TSource, TKey, TValue>(IBindable<TSource>, Func<TSource, BindableDictionary<TKey, TValue>>)

Extension method that creates a derived dictionary by transforming the bindables' value into a BindableDictionary. This is a convenient alternative to calling Derived.From.

public static DerivedDictionary<TKey, TValue> Derive<TSource, TKey, TValue>(this IBindable<TSource> bindable, Func<TSource, BindableDictionary<TKey, TValue>> transform)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

transform Func<TSource, BindableDictionary<TKey, TValue>>

The transformation function.

Returns

DerivedDictionary<TKey, TValue>

A derived dictionary that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TKey

The type of dictionary keys.

TValue

The type of dictionary values.

Derive<TSource, TKey, TValue>(IBindable<TSource>, Func<TSource, IBindableDictionary<TKey, TValue>>)

Extension method that creates a derived dictionary by transforming the bindables' value into a BindableDictionary. This is a convenient alternative to calling Derived.From.

public static DerivedDictionary<TKey, TValue> Derive<TSource, TKey, TValue>(this IBindable<TSource> bindable, Func<TSource, IBindableDictionary<TKey, TValue>> transform)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

transform Func<TSource, IBindableDictionary<TKey, TValue>>

The transformation function.

Returns

DerivedDictionary<TKey, TValue>

A derived dictionary that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TKey

The type of dictionary keys.

TValue

The type of dictionary values.

From<TSource, TDerived>(IBindable<TSource>, Func<TSource, BindableList<TDerived>>)

Transforms one or more bindables into a derived list that automatically updates when any source changes.

public static DerivedList<TDerived> From<TSource, TDerived>(IBindable<TSource> bindable, Func<TSource, BindableList<TDerived>> func)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

func Func<TSource, BindableList<TDerived>>

The transformation function that converts the source value to a BindableList.

Returns

DerivedList<TDerived>

A derived list that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TDerived

The type of items in the derived list.

From<TSource, TDerived>(IBindable<TSource>, Func<TSource, Bindable<TDerived>>)

Transforms one or more bindables into a derived bindable that automatically updates when any source changes.

public static Derived<TDerived> From<TSource, TDerived>(IBindable<TSource> bindable, Func<TSource, Bindable<TDerived>> func)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

func Func<TSource, Bindable<TDerived>>

The transformation function that converts the source value to a Bindable.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TDerived

The type of the derived bindable value.

From<TSource, TDerived>(IBindable<TSource>, Func<TSource, IBindableList<TDerived>>)

Transforms one or more bindables into a derived list that automatically updates when any source changes.

public static DerivedList<TDerived> From<TSource, TDerived>(IBindable<TSource> bindable, Func<TSource, IBindableList<TDerived>> func)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

func Func<TSource, IBindableList<TDerived>>

The transformation function that converts the source value to an IBindableList.

Returns

DerivedList<TDerived>

A derived list that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TDerived

The type of items in the derived list.

From<TSource, TDerived>(IBindable<TSource>, Func<TSource, IBindable<TDerived>>)

Transforms one or more bindables into a derived bindable that automatically updates when any source changes.

public static Derived<TDerived> From<TSource, TDerived>(IBindable<TSource> bindable, Func<TSource, IBindable<TDerived>> func)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

func Func<TSource, IBindable<TDerived>>

The transformation function that converts the source value to an IBindable.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TDerived

The type of the derived bindable value.

From<TSource, TDerived>(IBindable<TSource>, Func<TSource, TDerived>)

Transforms one or more bindables into a derived bindable that automatically updates when any source changes. This is the most commonly used method for transforming bindables.

public static Derived<TDerived> From<TSource, TDerived>(IBindable<TSource> bindable, Func<TSource, TDerived> func)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

func Func<TSource, TDerived>

The transformation function that converts the source value to the derived value.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TDerived

The type of the derived bindable value.

From<TSource1, TSource2, TDerived>(IBindable<TSource1>, IBindable<TSource2>, Func<TSource1, TSource2, BindableList<TDerived>>)

Transforms one or more bindables into a derived list that automatically updates when any source changes.

public static DerivedList<TDerived> From<TSource1, TSource2, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, Func<TSource1, TSource2, BindableList<TDerived>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
func Func<TSource1, TSource2, BindableList<TDerived>>

The transformation function that converts the source value to a BindableList.

Returns

DerivedList<TDerived>

A derived list that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TDerived

The type of items in the derived list.

From<TSource1, TSource2, TDerived>(IBindable<TSource1>, IBindable<TSource2>, Func<TSource1, TSource2, Bindable<TDerived>>)

Transforms one or more bindables into a derived bindable that automatically updates when any source changes.

public static Derived<TDerived> From<TSource1, TSource2, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, Func<TSource1, TSource2, Bindable<TDerived>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
func Func<TSource1, TSource2, Bindable<TDerived>>

The transformation function that converts the source value to a Bindable.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TDerived

The type of the derived bindable value.

From<TSource1, TSource2, TDerived>(IBindable<TSource1>, IBindable<TSource2>, Func<TSource1, TSource2, IBindableList<TDerived>>)

Transforms one or more bindables into a derived list that automatically updates when any source changes.

public static DerivedList<TDerived> From<TSource1, TSource2, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, Func<TSource1, TSource2, IBindableList<TDerived>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
func Func<TSource1, TSource2, IBindableList<TDerived>>

The transformation function that converts the source value to an IBindableList.

Returns

DerivedList<TDerived>

A derived list that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TDerived

The type of items in the derived list.

From<TSource1, TSource2, TDerived>(IBindable<TSource1>, IBindable<TSource2>, Func<TSource1, TSource2, IBindable<TDerived>>)

Transforms one or more bindables into a derived bindable that automatically updates when any source changes.

public static Derived<TDerived> From<TSource1, TSource2, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, Func<TSource1, TSource2, IBindable<TDerived>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
func Func<TSource1, TSource2, IBindable<TDerived>>

The transformation function that converts the source value to an IBindable.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TDerived

The type of the derived bindable value.

From<TSource1, TSource2, TDerived>(IBindable<TSource1>, IBindable<TSource2>, Func<TSource1, TSource2, TDerived>)

Transforms one or more bindables into a derived bindable that automatically updates when any source changes. This is the most commonly used method for transforming bindables.

public static Derived<TDerived> From<TSource1, TSource2, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, Func<TSource1, TSource2, TDerived> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
func Func<TSource1, TSource2, TDerived>

The transformation function that converts the source value to the derived value.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TDerived

The type of the derived bindable value.

From<TSource, TKey, TValue>(IBindable<TSource>, Func<TSource, BindableDictionary<TKey, TValue>>)

Transforms one or more bindables into a derived dictionary that automatically updates when any source changes.

public static DerivedDictionary<TKey, TValue> From<TSource, TKey, TValue>(IBindable<TSource> bindable, Func<TSource, BindableDictionary<TKey, TValue>> func)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

func Func<TSource, BindableDictionary<TKey, TValue>>

The transformation function that converts the source value to a BindableDictionary.

Returns

DerivedDictionary<TKey, TValue>

A derived dictionary that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TKey

The type of dictionary keys.

TValue

The type of dictionary values.

From<TSource, TKey, TValue>(IBindable<TSource>, Func<TSource, IBindableDictionary<TKey, TValue>>)

Transforms one or more bindables into a derived dictionary that automatically updates when any source changes.

public static DerivedDictionary<TKey, TValue> From<TSource, TKey, TValue>(IBindable<TSource> bindable, Func<TSource, IBindableDictionary<TKey, TValue>> func)

Parameters

bindable IBindable<TSource>

The source bindable to transform.

func Func<TSource, IBindableDictionary<TKey, TValue>>

The transformation function that converts the source value to an IBindableDictionary.

Returns

DerivedDictionary<TKey, TValue>

A derived dictionary that updates automatically when the source bindable changes.

Type Parameters

TSource

The type of the source bindable value.

TKey

The type of dictionary keys.

TValue

The type of dictionary values.

From<TSource1, TSource2, TSource3, TDerived>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, Func<TSource1, TSource2, TSource3, BindableList<TDerived>>)

Transforms one or more bindables into a derived list that automatically updates when any source changes.

public static DerivedList<TDerived> From<TSource1, TSource2, TSource3, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, Func<TSource1, TSource2, TSource3, BindableList<TDerived>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
func Func<TSource1, TSource2, TSource3, BindableList<TDerived>>

The transformation function that converts the source value to a BindableList.

Returns

DerivedList<TDerived>

A derived list that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TDerived

The type of items in the derived list.

From<TSource1, TSource2, TSource3, TDerived>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, Func<TSource1, TSource2, TSource3, Bindable<TDerived>>)

Transforms one or more bindables into a derived bindable that automatically updates when any source changes.

public static Derived<TDerived> From<TSource1, TSource2, TSource3, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, Func<TSource1, TSource2, TSource3, Bindable<TDerived>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
func Func<TSource1, TSource2, TSource3, Bindable<TDerived>>

The transformation function that converts the source value to a Bindable.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TDerived

The type of the derived bindable value.

From<TSource1, TSource2, TSource3, TDerived>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, Func<TSource1, TSource2, TSource3, IBindableList<TDerived>>)

Transforms one or more bindables into a derived list that automatically updates when any source changes.

public static DerivedList<TDerived> From<TSource1, TSource2, TSource3, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, Func<TSource1, TSource2, TSource3, IBindableList<TDerived>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
func Func<TSource1, TSource2, TSource3, IBindableList<TDerived>>

The transformation function that converts the source value to an IBindableList.

Returns

DerivedList<TDerived>

A derived list that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TDerived

The type of items in the derived list.

From<TSource1, TSource2, TSource3, TDerived>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, Func<TSource1, TSource2, TSource3, IBindable<TDerived>>)

Transforms one or more bindables into a derived bindable that automatically updates when any source changes.

public static Derived<TDerived> From<TSource1, TSource2, TSource3, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, Func<TSource1, TSource2, TSource3, IBindable<TDerived>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
func Func<TSource1, TSource2, TSource3, IBindable<TDerived>>

The transformation function that converts the source value to an IBindable.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TDerived

The type of the derived bindable value.

From<TSource1, TSource2, TSource3, TDerived>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, Func<TSource1, TSource2, TSource3, TDerived>)

Transforms one or more bindables into a derived bindable that automatically updates when any source changes. This is the most commonly used method for transforming bindables.

public static Derived<TDerived> From<TSource1, TSource2, TSource3, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, Func<TSource1, TSource2, TSource3, TDerived> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
func Func<TSource1, TSource2, TSource3, TDerived>

The transformation function that converts the source value to the derived value.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TDerived

The type of the derived bindable value.

From<TSource1, TSource2, TKey, TValue>(IBindable<TSource1>, IBindable<TSource2>, Func<TSource1, TSource2, BindableDictionary<TKey, TValue>>)

Transforms one or more bindables into a derived dictionary that automatically updates when any source changes.

public static DerivedDictionary<TKey, TValue> From<TSource1, TSource2, TKey, TValue>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, Func<TSource1, TSource2, BindableDictionary<TKey, TValue>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
func Func<TSource1, TSource2, BindableDictionary<TKey, TValue>>

The transformation function that converts the source value to a BindableDictionary.

Returns

DerivedDictionary<TKey, TValue>

A derived dictionary that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TKey

The type of dictionary keys.

TValue

The type of dictionary values.

From<TSource1, TSource2, TKey, TValue>(IBindable<TSource1>, IBindable<TSource2>, Func<TSource1, TSource2, IBindableDictionary<TKey, TValue>>)

Transforms one or more bindables into a derived dictionary that automatically updates when any source changes.

public static DerivedDictionary<TKey, TValue> From<TSource1, TSource2, TKey, TValue>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, Func<TSource1, TSource2, IBindableDictionary<TKey, TValue>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
func Func<TSource1, TSource2, IBindableDictionary<TKey, TValue>>

The transformation function that converts the source value to an IBindableDictionary.

Returns

DerivedDictionary<TKey, TValue>

A derived dictionary that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TKey

The type of dictionary keys.

TValue

The type of dictionary values.

From<TSource1, TSource2, TSource3, TSource4, TDerived>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, IBindable<TSource4>, Func<TSource1, TSource2, TSource3, TSource4, BindableList<TDerived>>)

Transforms one or more bindables into a derived list that automatically updates when any source changes.

public static DerivedList<TDerived> From<TSource1, TSource2, TSource3, TSource4, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, IBindable<TSource4> bindable4, Func<TSource1, TSource2, TSource3, TSource4, BindableList<TDerived>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
bindable4 IBindable<TSource4>
func Func<TSource1, TSource2, TSource3, TSource4, BindableList<TDerived>>

The transformation function that converts the source value to a BindableList.

Returns

DerivedList<TDerived>

A derived list that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TSource4
TDerived

The type of items in the derived list.

From<TSource1, TSource2, TSource3, TSource4, TDerived>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, IBindable<TSource4>, Func<TSource1, TSource2, TSource3, TSource4, Bindable<TDerived>>)

Transforms one or more bindables into a derived bindable that automatically updates when any source changes.

public static Derived<TDerived> From<TSource1, TSource2, TSource3, TSource4, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, IBindable<TSource4> bindable4, Func<TSource1, TSource2, TSource3, TSource4, Bindable<TDerived>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
bindable4 IBindable<TSource4>
func Func<TSource1, TSource2, TSource3, TSource4, Bindable<TDerived>>

The transformation function that converts the source value to a Bindable.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TSource4
TDerived

The type of the derived bindable value.

From<TSource1, TSource2, TSource3, TSource4, TDerived>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, IBindable<TSource4>, Func<TSource1, TSource2, TSource3, TSource4, IBindableList<TDerived>>)

Transforms one or more bindables into a derived list that automatically updates when any source changes.

public static DerivedList<TDerived> From<TSource1, TSource2, TSource3, TSource4, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, IBindable<TSource4> bindable4, Func<TSource1, TSource2, TSource3, TSource4, IBindableList<TDerived>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
bindable4 IBindable<TSource4>
func Func<TSource1, TSource2, TSource3, TSource4, IBindableList<TDerived>>

The transformation function that converts the source value to an IBindableList.

Returns

DerivedList<TDerived>

A derived list that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TSource4
TDerived

The type of items in the derived list.

From<TSource1, TSource2, TSource3, TSource4, TDerived>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, IBindable<TSource4>, Func<TSource1, TSource2, TSource3, TSource4, IBindable<TDerived>>)

Transforms one or more bindables into a derived bindable that automatically updates when any source changes.

public static Derived<TDerived> From<TSource1, TSource2, TSource3, TSource4, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, IBindable<TSource4> bindable4, Func<TSource1, TSource2, TSource3, TSource4, IBindable<TDerived>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
bindable4 IBindable<TSource4>
func Func<TSource1, TSource2, TSource3, TSource4, IBindable<TDerived>>

The transformation function that converts the source value to an IBindable.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TSource4
TDerived

The type of the derived bindable value.

From<TSource1, TSource2, TSource3, TSource4, TDerived>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, IBindable<TSource4>, Func<TSource1, TSource2, TSource3, TSource4, TDerived>)

Transforms one or more bindables into a derived bindable that automatically updates when any source changes. This is the most commonly used method for transforming bindables.

public static Derived<TDerived> From<TSource1, TSource2, TSource3, TSource4, TDerived>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, IBindable<TSource4> bindable4, Func<TSource1, TSource2, TSource3, TSource4, TDerived> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
bindable4 IBindable<TSource4>
func Func<TSource1, TSource2, TSource3, TSource4, TDerived>

The transformation function that converts the source value to the derived value.

Returns

Derived<TDerived>

A derived bindable that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TSource4
TDerived

The type of the derived bindable value.

From<TSource1, TSource2, TSource3, TKey, TValue>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, Func<TSource1, TSource2, TSource3, BindableDictionary<TKey, TValue>>)

Transforms one or more bindables into a derived dictionary that automatically updates when any source changes.

public static DerivedDictionary<TKey, TValue> From<TSource1, TSource2, TSource3, TKey, TValue>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, Func<TSource1, TSource2, TSource3, BindableDictionary<TKey, TValue>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
func Func<TSource1, TSource2, TSource3, BindableDictionary<TKey, TValue>>

The transformation function that converts the source value to a BindableDictionary.

Returns

DerivedDictionary<TKey, TValue>

A derived dictionary that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TKey

The type of dictionary keys.

TValue

The type of dictionary values.

From<TSource1, TSource2, TSource3, TKey, TValue>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, Func<TSource1, TSource2, TSource3, IBindableDictionary<TKey, TValue>>)

Transforms one or more bindables into a derived dictionary that automatically updates when any source changes.

public static DerivedDictionary<TKey, TValue> From<TSource1, TSource2, TSource3, TKey, TValue>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, Func<TSource1, TSource2, TSource3, IBindableDictionary<TKey, TValue>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
func Func<TSource1, TSource2, TSource3, IBindableDictionary<TKey, TValue>>

The transformation function that converts the source value to an IBindableDictionary.

Returns

DerivedDictionary<TKey, TValue>

A derived dictionary that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TKey

The type of dictionary keys.

TValue

The type of dictionary values.

From<TSource1, TSource2, TSource3, TSource4, TKey, TValue>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, IBindable<TSource4>, Func<TSource1, TSource2, TSource3, TSource4, BindableDictionary<TKey, TValue>>)

Transforms one or more bindables into a derived dictionary that automatically updates when any source changes.

public static DerivedDictionary<TKey, TValue> From<TSource1, TSource2, TSource3, TSource4, TKey, TValue>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, IBindable<TSource4> bindable4, Func<TSource1, TSource2, TSource3, TSource4, BindableDictionary<TKey, TValue>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
bindable4 IBindable<TSource4>
func Func<TSource1, TSource2, TSource3, TSource4, BindableDictionary<TKey, TValue>>

The transformation function that converts the source value to a BindableDictionary.

Returns

DerivedDictionary<TKey, TValue>

A derived dictionary that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TSource4
TKey

The type of dictionary keys.

TValue

The type of dictionary values.

From<TSource1, TSource2, TSource3, TSource4, TKey, TValue>(IBindable<TSource1>, IBindable<TSource2>, IBindable<TSource3>, IBindable<TSource4>, Func<TSource1, TSource2, TSource3, TSource4, IBindableDictionary<TKey, TValue>>)

Transforms one or more bindables into a derived dictionary that automatically updates when any source changes.

public static DerivedDictionary<TKey, TValue> From<TSource1, TSource2, TSource3, TSource4, TKey, TValue>(IBindable<TSource1> bindable1, IBindable<TSource2> bindable2, IBindable<TSource3> bindable3, IBindable<TSource4> bindable4, Func<TSource1, TSource2, TSource3, TSource4, IBindableDictionary<TKey, TValue>> func)

Parameters

bindable1 IBindable<TSource1>
bindable2 IBindable<TSource2>
bindable3 IBindable<TSource3>
bindable4 IBindable<TSource4>
func Func<TSource1, TSource2, TSource3, TSource4, IBindableDictionary<TKey, TValue>>

The transformation function that converts the source value to an IBindableDictionary.

Returns

DerivedDictionary<TKey, TValue>

A derived dictionary that updates automatically when the source bindable changes.

Type Parameters

TSource1
TSource2
TSource3
TSource4
TKey

The type of dictionary keys.

TValue

The type of dictionary values.

IsNotNull<T>(IBindable<T>)

Creates a derived bindable that returns true when the source bindables' value is not null.

public static Derived<bool> IsNotNull<T>(this IBindable<T> bindable) where T : class

Parameters

bindable IBindable<T>

The source bindable to check for null.

Returns

Derived<bool>

A derived bindable that returns true when the source value is not null.

Type Parameters

T

The type of the source bindable value (must be a reference type).

IsNot<T>(IBindable<T>, T)

Creates a derived bindable that returns true when the source bindables' value does not equal the specified value.

public static Derived<bool> IsNot<T>(this IBindable<T> bindable, T value)

Parameters

bindable IBindable<T>

The source bindable to compare.

value T

The value to compare against.

Returns

Derived<bool>

A derived bindable that returns true when the source value does not equal the specified value.

Type Parameters

T

The type of the source bindable value.

IsNull<T>(IBindable<T>)

Creates a derived bindable that returns true when the source bindables' value is null.

public static Derived<bool> IsNull<T>(this IBindable<T> bindable) where T : class

Parameters

bindable IBindable<T>

The source bindable to check for null.

Returns

Derived<bool>

A derived bindable that returns true when the source value is null.

Type Parameters

T

The type of the source bindable value (must be a reference type).

Is<T>(IBindable<T>, T)

Creates a derived bindable that returns true when the source bindables' value equals the specified value.

public static Derived<bool> Is<T>(this IBindable<T> bindable, T value)

Parameters

bindable IBindable<T>

The source bindable to compare.

value T

The value to compare against.

Returns

Derived<bool>

A derived bindable that returns true when the source value equals the specified value.

Type Parameters

T

The type of the source bindable value.