Chapter 31 Flashcards
What are 2 method to show hierarchical data using hierarchical data template
- Tree view
2. Menu
What is provided by XMLdataprovider
It provides us some facility which are useful for binding objects which are not designed for binding.
What are 4 binding modes
- OneWay
- TwoWay
- OneWayToSource
- OneTime
What is OneWay binding
Pick data from source and display on target. If source changes the display data changes.
What is TwoWay binding
Pick data from source and display to target. If we make changes in data on target, it also reflect on original source.
What is OneWayToSource binding
It is opposite to OneWay. If we type on target it goes on source.
What is OneTime binding
We do binding and the data in source get display on target. But after that it is not bound. If there is changes in source it is not reflected on target.
What is convert back function
When we do binding and take data from target to source
What is convert function
When we do binding and take data from source to target
What event attached on binding by default
By default on LostFocus, but there are also other options, like
- PropertyChanged
- Explicit
What is validation in binding
These are simple classes that has validate method.
What are 2 methods for validation in binding
It has
- From binding
- From source
What is data context
We tell source once and bind elements to it