-
-
Notifications
You must be signed in to change notification settings - Fork 10
Crow.IML.BindingMember
Jean-Philippe Bruyère edited this page Oct 26, 2021
·
3 revisions
Binding expression parser.
Valid tokens in binding expression:
- '../' => 1 level up in graphic tree
- './' or '/' => template root level
- '.Name1.Name2' current level properties
- 'name.prop' named descendant in graphic tree, search with 'FindByName' method of Widget
namespace: Crow.IML
BindingMember
public class BindingMember
⬜ | prototype | description |
---|---|---|
BindingMember () |
Initializes a new instance of BindingMember. | |
BindingMember (string expression) |
Initializes a new instance of BindingMember by parsing the string passed as argument |
⬜ | name | description |
---|---|---|
IsCurrentNodeProperty |
No level change and expression was '.name' | |
IsSingleName |
no level change, and only a single name in Tokens[], that's dataSource member if property binding | |
IsTemplateBinding |
Target the template's root node, expression was in the form './name[.name[...]]' or '/name[.name[...]]' |
⬜ | prototype | description |
---|---|---|
void emitGetProperty(ILGenerator il, System.Reflection.Emit.Label cancel) |
Emit the MSIL instructions to get the target property of the binding expression | |
void emitGetTarget(ILGenerator il, System.Reflection.Emit.Label cancel, NodeAddress currentNode=null) |
Emits the MSIL instructions to get the target of the binding expression | |
void emitSetProperty(ILGenerator il) |
Emit the MSIL instructions to set the target property of the binding expression |
⬜ | name | description |
---|