WPF Binding to a viewmodel
Posted
by
user832747
on Stack Overflow
See other posts from Stack Overflow
or by user832747
Published on 2013-11-02T03:41:52Z
Indexed on
2013/11/02
3:53 UTC
Read the original article
Hit count: 131
I'm simply binding a WPF DataGridTextColumn with a binding to my grid rows.
<DataGridTextColumn Header="Name" Binding="{Binding Name}" />
I've bound to my row view models. The Name property has a PRIVATE setter.
public string Name
{
get { return _name; }
private set { _name = value; }
}
Shouldn't the datagrid prevent me from accessing the private setter? The grid allows me to access it.
I swear it never used to, unless I'm forgetting something?
© Stack Overflow or respective owner