Class BaseObject
可绑定对象基础类
Derived
Extension Methods
Namespace: Fleet.Mobile.Containers
Assembly: FleetMobile.dll
Syntax
public abstract class BaseObject : BindableObject, INotifyPropertyChanged, ILoading
Constructors
BaseObject()
Declaration
protected BaseObject()
Fields
IsLoadingProperty
Properties
IsLoading
Methods
CreateProperty<T, V>(string, T, BindingMode, Action<V, T>)
根据返回类型、名称、默认值、默认绑定模式快速创建属性。
Declaration
protected static BindableProperty CreateProperty<T, V>(string name, T defaultValue = default, BindingMode defaultBindingMode = BindingMode.OneWay, Action<V, T> propertyChanged = null) where V : BindableObject
Parameters
|
string
name
属性名称 |
|
T
defaultValue
属性初始值,默认为该类型的默认值 |
|
BindingMode
defaultBindingMode
属性绑定模式,默认为 OneWay |
|
Action<V, T>
propertyChanged
属性变化时触发的回调函数,默认为 null |
Returns
|
BindableProperty
返回创建的属性 |
Type Parameters
|
T
属性返回类型 |
|
V
所属类型 |