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;
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 7
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Awesome!
Completion rate improved to 3.7
Data Binding
Scorri per mostrare il 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;
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 7