Interface ITokenTable<T>
Definition
- Assembly:
- Tizen.NUI.dll
The interface for a token table.
public interface ITokenTable<T>
Methods
View SourceBind(View, IPropertySetter<T>, IToken<T>)
The method to bind target with token. When table is updated, binded view will be updated.
Declaration
void Bind(View target, IPropertySetter<T> setter, IToken<T> token)
Parameters
| Type | Name | Description |
|---|---|---|
| View | target | |
| IPropertySetter<T> | setter | |
| IToken<T> | token |
TryGetToken(View, string, out IToken<T>)
The method to get binded token to the view.
Declaration
bool TryGetToken(View target, string propertyName, out IToken<T> token)
Parameters
| Type | Name | Description |
|---|---|---|
| View | target | The target view. |
| string | propertyName | The property name of the target view. |
| IToken<T> | token | The binded token. |
Returns
| Type | Description |
|---|---|
| bool | True if the token is found, otherwise false. |
TryGetValue(string, out T)
The method to get the value from the resource table.
Declaration
bool TryGetValue(string id, out T result)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | |
| T | result |
Returns
| Type | Description |
|---|---|
| bool |
Update(IDictionary<string, T>)
The method to update the resource table.
Declaration
void Update(IDictionary<string, T> table)
Parameters
| Type | Name | Description |
|---|---|---|
| IDictionary<, ><string, T> | table |
Events
View SourceUpdated
The event which is invoked when the resource table is updated.
Declaration
event EventHandler Updated
Event Type
| Type | Description |
|---|---|
| EventHandler |