Colleagues,

I have a text box which binds to data:
Code:
<TextBox x:Name="textBox1" Text="{Binding Path=Comments}" Width="200" Margin="0,4" />
If Comments is declared as a property, the binding works:
Code:
public int Comments { get; set; }
However, if Comments is declared as a field, the binding doesnít work:
Code:
public int Comments;
I havenít seen an example where a control was bound to a field, but I havenít seen any indication that itís a bad practice or not possible.

- Nick