I would like to bind a textbox
to a property of a static class. I would like this to be two-way binding. My static class is this (trimmed):
public static class ocrVar
{
static ocrVar()
{
MeterNumber = new Element();
}
}
The Element class looks like this (trimmed):
public class Element
{
public List<string> Value { get; set; }
public Element()
: this(new List<string>())
{
}
public Element(List<string> value)
{
Value = value;
}
}
If I want to take a TextBox
and bind it to ocrVar.MeterNumber.Value[0], is there a way to do that?