Interface IDataBinding
Represents a data binding that binds a certain LayerProperty<T> to a value inside a DataModel
Namespace: Artemis.Core
Assembly: Artemis.Core.dll
Syntax
public interface IDataBinding : IStorageModel, IDisposable
Properties
BaseLayerProperty
Gets the layer property the data binding is applied to
Declaration
ILayerProperty BaseLayerProperty { get; }
Property Value
Type | Description |
---|---|
ILayerProperty |
IsEnabled
Gets a boolean indicating whether the data binding is enabled or not
Declaration
bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
Properties
Gets a list of sub-properties this data binding applies to
Declaration
ReadOnlyCollection<IDataBindingProperty> Properties { get; }
Property Value
Type | Description |
---|---|
ReadOnlyCollection<IDataBindingProperty> |
Script
Gets the script used to populate the data binding
Declaration
INodeScript Script { get; }
Property Value
Type | Description |
---|---|
INodeScript |
Methods
Apply()
Applies the pending value of the data binding to the property
Declaration
void Apply()
LoadNodeScript()
If the data binding is enabled, loads the node script for that data binding
Declaration
void LoadNodeScript()
Events
DataBindingDisabled
Occurs when a data binding has been disabled
Declaration
event EventHandler<DataBindingEventArgs>? DataBindingDisabled
Event Type
Type | Description |
---|---|
EventHandler<DataBindingEventArgs> |
DataBindingEnabled
Occurs when a data binding has been enabled
Declaration
event EventHandler<DataBindingEventArgs>? DataBindingEnabled
Event Type
Type | Description |
---|---|
EventHandler<DataBindingEventArgs> |
DataBindingPropertiesCleared
Occurs when all data binding properties have been removed
Declaration
event EventHandler<DataBindingEventArgs>? DataBindingPropertiesCleared
Event Type
Type | Description |
---|---|
EventHandler<DataBindingEventArgs> |
DataBindingPropertyRegistered
Occurs when a data binding property has been added
Declaration
event EventHandler<DataBindingEventArgs>? DataBindingPropertyRegistered
Event Type
Type | Description |
---|---|
EventHandler<DataBindingEventArgs> |