MewObject.SetBinding<T> method (1 of 23)
Binds a MewProperty on this object to a MewProperty on a source object. When the source property changes, this object’s binding value is updated without replacing a local value. Replaces any existing binding for the same property.
public void SetBinding<T>(MewProperty<T> property, MewObject source, MewProperty<T> sourceProperty)See Also
Section titled “See Also”- class MewProperty<T>
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<T> method (2 of 23)
Section titled “MewObject.SetBinding<T> method (2 of 23)”Binds a MewProperty to an ObservableValue. Replaces any existing binding for the same property.
public void SetBinding<T>(MewProperty<T> property, ObservableValue<T> source, BindingMode? mode = default)See Also
Section titled “See Also”- class MewProperty<T>
- class ObservableValue<T>
- enum BindingMode
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TSource,T> method (3 of 23)
Section titled “MewObject.SetBinding<TSource,T> method (3 of 23)”Binds a property to an ObservableValue reached through source. The wrapper supplies the change notification, so source need not raise property change events.
public void SetBinding<TSource, T>(MewProperty<T> property, TSource source, Func<TSource, ObservableValue<T>> selector, BindingMode? mode = default) where TSource : classSee Also
Section titled “See Also”- class MewProperty<T>
- class ObservableValue<T>
- enum BindingMode
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TRoot,T> method (4 of 23)
Section titled “MewObject.SetBinding<TRoot,T> method (4 of 23)”Binds a property to a reusable delegate-based path rooted at source. Replaces any existing binding for the same property.
public void SetBinding<TRoot, T>(MewProperty<T> property, TRoot source, BindingPath<TRoot, T> path, BindingMode? mode = default, T fallbackValue = default) where TRoot : classSee Also
Section titled “See Also”- class MewProperty<T>
- class BindingPath<TRoot,TValue>
- enum BindingMode
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,TSource> method (5 of 23)
Section titled “MewObject.SetBinding<TProp,TSource> method (5 of 23)”Binds a MewProperty to an ObservableValue with type conversion. Replaces any existing binding for the same property.
public void SetBinding<TProp, TSource>(MewProperty<TProp> property, ObservableValue<TSource> source, Func<TSource, TProp> convert, Func<TProp, TSource>? convertBack = null, BindingMode? mode = default)See Also
Section titled “See Also”- class MewProperty<T>
- class ObservableValue<T>
- enum BindingMode
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TSource,T> method (6 of 23)
Section titled “MewObject.SetBinding<TSource,T> method (6 of 23)”Binds a property to a single notifying property of source. Omitting setter makes the binding OneWay. Replaces any existing binding for the same property.
public void SetBinding<TSource, T>(MewProperty<T> property, TSource source, Func<TSource, T> getter, Action<TSource, T>? setter = null, BindingMode? mode = default, string? getterExpression = null) where TSource : class, INotifyPropertyChangedExceptions
Section titled “Exceptions”| exception | condition |
|---|---|
| ArgumentException | Thrown when getter is not a single member access such as x => x.Name. |
See Also
Section titled “See Also”- class MewProperty<T>
- enum BindingMode
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,TSource> method (7 of 23)
Section titled “MewObject.SetBinding<TProp,TSource> method (7 of 23)”Binds a MewProperty on this object to a MewProperty on a source object with type conversion. Replaces any existing binding for the same property.
public void SetBinding<TProp, TSource>(MewProperty<TProp> property, MewObject source, MewProperty<TSource> sourceProperty, Func<TSource, TProp> convert, Func<TProp, TSource>? convertBack = null, BindingMode? mode = default)See Also
Section titled “See Also”- class MewProperty<T>
- enum BindingMode
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TSource,T> method (8 of 23)
Section titled “MewObject.SetBinding<TSource,T> method (8 of 23)”Binds a property to a notifying property of source and shows fallbackValue while a null intermediate breaks the path. Omitting setter makes the binding OneWay. Replaces any existing binding for the same property.
public void SetBinding<TSource, T>(MewProperty<T> property, TSource source, Func<TSource, T> getter, T fallbackValue, Action<TSource, T>? setter = null, BindingMode? mode = default, string? getterExpression = null) where TSource : class, INotifyPropertyChangedExceptions
Section titled “Exceptions”| exception | condition |
|---|---|
| ArgumentException | Thrown when getter is not a single member access such as x => x.Name and the binding path generator did not rewrite it. |
See Also
Section titled “See Also”- class MewProperty<T>
- enum BindingMode
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,T1,T2> method (9 of 23)
Section titled “MewObject.SetBinding<TProp,T1,T2> method (9 of 23)”Binds a property to a value that combine computes from two inputs. The binding is always OneWay and shows the default value of TProp while any input is unavailable. Replaces any existing binding for the same property.
public void SetBinding<TProp, T1, T2>(MewProperty<TProp> property, BindingInput<T1> first, BindingInput<T2> second, Func<T1, T2, TProp> combine)See Also
Section titled “See Also”- class MewProperty<T>
- class BindingInput<TValue>
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,T1,T2> method (10 of 23)
Section titled “MewObject.SetBinding<TProp,T1,T2> method (10 of 23)”Binds a property to a value that combine computes from two inputs. The binding is always OneWay and shows fallbackValue while any input is unavailable. Replaces any existing binding for the same property.
public void SetBinding<TProp, T1, T2>(MewProperty<TProp> property, BindingInput<T1> first, BindingInput<T2> second, TProp fallbackValue, Func<T1, T2, TProp> combine)See Also
Section titled “See Also”- class MewProperty<T>
- class BindingInput<TValue>
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,TRoot,TSource> method (11 of 23)
Section titled “MewObject.SetBinding<TProp,TRoot,TSource> method (11 of 23)”Binds a property to a reusable delegate-based path with type conversion. Replaces any existing binding for the same property.
public void SetBinding<TProp, TRoot, TSource>(MewProperty<TProp> property, TRoot source, BindingPath<TRoot, TSource> path, Func<TSource, TProp> convert, Func<TProp, TSource>? convertBack = null, BindingMode? mode = default, TProp fallbackValue = default) where TRoot : classSee Also
Section titled “See Also”- class MewProperty<T>
- class BindingPath<TRoot,TValue>
- enum BindingMode
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,TSource,TValue> method (12 of 23)
Section titled “MewObject.SetBinding<TProp,TSource,TValue> method (12 of 23)”Binds a property to a single notifying property of source with type conversion. The binding is TwoWay only when both setter and convertBack are supplied.
public void SetBinding<TProp, TSource, TValue>(MewProperty<TProp> property, TSource source, Func<TSource, TValue> getter, Func<TValue, TProp> convert, Action<TSource, TValue>? setter = null, Func<TProp, TValue>? convertBack = null, BindingMode? mode = default, string? getterExpression = null) where TSource : class, INotifyPropertyChangedExceptions
Section titled “Exceptions”| exception | condition |
|---|---|
| ArgumentException | Thrown when getter is not a single member access such as x => x.Name. |
See Also
Section titled “See Also”- class MewProperty<T>
- enum BindingMode
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,TSource,TValue> method (13 of 23)
Section titled “MewObject.SetBinding<TProp,TSource,TValue> method (13 of 23)”Binds a property to a converted notifying property of source and shows fallbackValue while a null intermediate breaks the path. The binding is TwoWay only when both setter and convertBack are supplied.
public void SetBinding<TProp, TSource, TValue>(MewProperty<TProp> property, TSource source, Func<TSource, TValue> getter, Func<TValue, TProp> convert, TProp fallbackValue, Action<TSource, TValue>? setter = null, Func<TProp, TValue>? convertBack = null, BindingMode? mode = default, string? getterExpression = null) where TSource : class, INotifyPropertyChangedExceptions
Section titled “Exceptions”| exception | condition |
|---|---|
| ArgumentException | Thrown when getter is not a single member access such as x => x.Name and the binding path generator did not rewrite it. |
See Also
Section titled “See Also”- class MewProperty<T>
- enum BindingMode
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,T1,T2,T3> method (14 of 23)
Section titled “MewObject.SetBinding<TProp,T1,T2,T3> method (14 of 23)”Binds a property to a value that combine computes from three inputs. The binding is always OneWay and shows the default value of TProp while any input is unavailable. Replaces any existing binding for the same property.
public void SetBinding<TProp, T1, T2, T3>(MewProperty<TProp> property, BindingInput<T1> first, BindingInput<T2> second, BindingInput<T3> third, Func<T1, T2, T3, TProp> combine)See Also
Section titled “See Also”- class MewProperty<T>
- class BindingInput<TValue>
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,T1,T2,T3> method (15 of 23)
Section titled “MewObject.SetBinding<TProp,T1,T2,T3> method (15 of 23)”Binds a property to a value that combine computes from three inputs. The binding is always OneWay and shows fallbackValue while any input is unavailable. Replaces any existing binding for the same property.
public void SetBinding<TProp, T1, T2, T3>(MewProperty<TProp> property, BindingInput<T1> first, BindingInput<T2> second, BindingInput<T3> third, TProp fallbackValue, Func<T1, T2, T3, TProp> combine)See Also
Section titled “See Also”- class MewProperty<T>
- class BindingInput<TValue>
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,TSource,T1,T2> method (16 of 23)
Section titled “MewObject.SetBinding<TProp,TSource,T1,T2> method (16 of 23)”Binds a property to a value that combine computes from two notifying properties of source. The binding is always OneWay and shows the default value of TProp while any input is unavailable. Replaces any existing binding for the same property.
public void SetBinding<TProp, TSource, T1, T2>(MewProperty<TProp> property, TSource source, Func<TSource, T1> first, Func<TSource, T2> second, Func<T1, T2, TProp> combine, string? firstExpression = null, string? secondExpression = null) where TSource : class, INotifyPropertyChangedExceptions
Section titled “Exceptions”| exception | condition |
|---|---|
| ArgumentException | Thrown when a getter is not a single member access such as x => x.Name and the binding path generator did not rewrite it. |
See Also
Section titled “See Also”- class MewProperty<T>
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,TSource,T1,T2> method (17 of 23)
Section titled “MewObject.SetBinding<TProp,TSource,T1,T2> method (17 of 23)”Binds a property to a value that combine computes from two notifying properties of source. The binding is always OneWay and shows fallbackValue while any input is unavailable. Replaces any existing binding for the same property.
public void SetBinding<TProp, TSource, T1, T2>(MewProperty<TProp> property, TSource source, Func<TSource, T1> first, Func<TSource, T2> second, TProp fallbackValue, Func<T1, T2, TProp> combine, string? firstExpression = null, string? secondExpression = null) where TSource : class, INotifyPropertyChangedExceptions
Section titled “Exceptions”| exception | condition |
|---|---|
| ArgumentException | Thrown when a getter is not a single member access such as x => x.Name and the binding path generator did not rewrite it. |
See Also
Section titled “See Also”- class MewProperty<T>
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,T1,T2,T3,T4> method (18 of 23)
Section titled “MewObject.SetBinding<TProp,T1,T2,T3,T4> method (18 of 23)”Binds a property to a value that combine computes from four inputs. The binding is always OneWay and shows the default value of TProp while any input is unavailable. Replaces any existing binding for the same property.
public void SetBinding<TProp, T1, T2, T3, T4>(MewProperty<TProp> property, BindingInput<T1> first, BindingInput<T2> second, BindingInput<T3> third, BindingInput<T4> fourth, Func<T1, T2, T3, T4, TProp> combine)See Also
Section titled “See Also”- class MewProperty<T>
- class BindingInput<TValue>
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,T1,T2,T3,T4> method (19 of 23)
Section titled “MewObject.SetBinding<TProp,T1,T2,T3,T4> method (19 of 23)”Binds a property to a value that combine computes from four inputs. The binding is always OneWay and shows fallbackValue while any input is unavailable. Replaces any existing binding for the same property.
public void SetBinding<TProp, T1, T2, T3, T4>(MewProperty<TProp> property, BindingInput<T1> first, BindingInput<T2> second, BindingInput<T3> third, BindingInput<T4> fourth, TProp fallbackValue, Func<T1, T2, T3, T4, TProp> combine)See Also
Section titled “See Also”- class MewProperty<T>
- class BindingInput<TValue>
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,TSource,T1,T2,T3> method (20 of 23)
Section titled “MewObject.SetBinding<TProp,TSource,T1,T2,T3> method (20 of 23)”Binds a property to a value that combine computes from three notifying properties of source. The binding is always OneWay and shows the default value of TProp while any input is unavailable. Replaces any existing binding for the same property.
public void SetBinding<TProp, TSource, T1, T2, T3>(MewProperty<TProp> property, TSource source, Func<TSource, T1> first, Func<TSource, T2> second, Func<TSource, T3> third, Func<T1, T2, T3, TProp> combine, string? firstExpression = null, string? secondExpression = null, string? thirdExpression = null) where TSource : class, INotifyPropertyChangedExceptions
Section titled “Exceptions”| exception | condition |
|---|---|
| ArgumentException | Thrown when a getter is not a single member access such as x => x.Name and the binding path generator did not rewrite it. |
See Also
Section titled “See Also”- class MewProperty<T>
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,TSource,T1,T2,T3> method (21 of 23)
Section titled “MewObject.SetBinding<TProp,TSource,T1,T2,T3> method (21 of 23)”Binds a property to a value that combine computes from three notifying properties of source. The binding is always OneWay and shows fallbackValue while any input is unavailable. Replaces any existing binding for the same property.
public void SetBinding<TProp, TSource, T1, T2, T3>(MewProperty<TProp> property, TSource source, Func<TSource, T1> first, Func<TSource, T2> second, Func<TSource, T3> third, TProp fallbackValue, Func<T1, T2, T3, TProp> combine, string? firstExpression = null, string? secondExpression = null, string? thirdExpression = null) where TSource : class, INotifyPropertyChangedExceptions
Section titled “Exceptions”| exception | condition |
|---|---|
| ArgumentException | Thrown when a getter is not a single member access such as x => x.Name and the binding path generator did not rewrite it. |
See Also
Section titled “See Also”- class MewProperty<T>
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,TSource,T1,T2,T3,T4> method (22 of 23)
Section titled “MewObject.SetBinding<TProp,TSource,T1,T2,T3,T4> method (22 of 23)”Binds a property to a value that combine computes from four notifying properties of source. The binding is always OneWay and shows the default value of TProp while any input is unavailable. Replaces any existing binding for the same property.
public void SetBinding<TProp, TSource, T1, T2, T3, T4>(MewProperty<TProp> property, TSource source, Func<TSource, T1> first, Func<TSource, T2> second, Func<TSource, T3> third, Func<TSource, T4> fourth, Func<T1, T2, T3, T4, TProp> combine, string? firstExpression = null, string? secondExpression = null, string? thirdExpression = null, string? fourthExpression = null) where TSource : class, INotifyPropertyChangedExceptions
Section titled “Exceptions”| exception | condition |
|---|---|
| ArgumentException | Thrown when a getter is not a single member access such as x => x.Name and the binding path generator did not rewrite it. |
See Also
Section titled “See Also”- class MewProperty<T>
- class MewObject
- namespace Aprillz.MewUI.Controls
MewObject.SetBinding<TProp,TSource,T1,T2,T3,T4> method (23 of 23)
Section titled “MewObject.SetBinding<TProp,TSource,T1,T2,T3,T4> method (23 of 23)”Binds a property to a value that combine computes from four notifying properties of source. The binding is always OneWay and shows fallbackValue while any input is unavailable. Replaces any existing binding for the same property.
public void SetBinding<TProp, TSource, T1, T2, T3, T4>(MewProperty<TProp> property, TSource source, Func<TSource, T1> first, Func<TSource, T2> second, Func<TSource, T3> third, Func<TSource, T4> fourth, TProp fallbackValue, Func<T1, T2, T3, T4, TProp> combine, string? firstExpression = null, string? secondExpression = null, string? thirdExpression = null, string? fourthExpression = null) where TSource : class, INotifyPropertyChangedExceptions
Section titled “Exceptions”| exception | condition |
|---|---|
| ArgumentException | Thrown when a getter is not a single member access such as x => x.Name and the binding path generator did not rewrite it. |
See Also
Section titled “See Also”- class MewProperty<T>
- class MewObject
- namespace Aprillz.MewUI.Controls