Table of Contents

Method SetProperty

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetProperty<T>(ref T?, T?, string?, Action?)

Sets field value and calls OnPropertyChanged(string?) method.

protected virtual bool SetProperty<T>(ref T? storage, T? value, string? propertyName = null, Action? changedAction = null)

Parameters

storage T

Field where property is stored.

value T

New property value.

propertyName string

Name of the property.

changedAction Action

This action is called when property changes

Returns

bool

Type Parameters

T