Data Binding
Important Points:
- We can use the SetBinding method to bind the property of one object to a property of another;
- The syntax of SetBinding method is
targetElement.SetBinding(TargetElementType.TargetProperty, new Binding(βpath to propertyβ, source: sourceElement);
; - The
stringFormat
named parameter can be used to pass a format for the string. It only works if the target property is a Textual property;
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 7
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Ask me questions about this topic
Summarize this chapter
Show real-world examples
Awesome!
Completion rate improved to 3.7
Data Binding
Swipe to show menu
Important Points:
- We can use the SetBinding method to bind the property of one object to a property of another;
- The syntax of SetBinding method is
targetElement.SetBinding(TargetElementType.TargetProperty, new Binding(βpath to propertyβ, source: sourceElement);
; - The
stringFormat
named parameter can be used to pass a format for the string. It only works if the target property is a Textual property;
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 7