Advanced Binding Options
Introduction
Using the Binding Class
label.SetBinding(
// UI property:
nameof(label.Text),
// ViewModel property:
nameof(MyViewModel.LabelText));// Binding is created using the ViewModel property
Binding binding = new(nameof(MyViewModel.LabelText));
label.SetBinding(
// UI property:
nameof(label.Text),
binding);Available Binding Properties
Last updated
Was this helpful?

