i am trying to binding a very simple property to a TextBlock, but I have to do all in code-behind (C#).
What i am trying to do is:
public string Some
Use BindingOperations
Binding binding = new Binding(); binding.Path = new PropertyPath("SomeText"); binding.Source = sourceObject; // view model? BindingOperations.SetBinding(theTextBlock, TextBlock.TextProperty, binding);