I need to bind a textbox to a property in the code behind, but I want it to be just to a property instead of class,
Instead of this:
public class A { public string Text { get; set; } } textbox.DataContext = A <textbox Text="{Binding Text}"/> I want this:
public string Text { get; set; } textbox.DataContext = Text; How can I achieve this?