First, I apologize for my low level English writing.
I use Entity Framework and data-binding in WPF MVVM project. I would like to know what is the best way to do data binding to added calculated property of EntityObject which is generated with Entity Framework.
For example:
partial class Person
{
partial string Name...
partial string Surname...
public string FullName
{
get { return Name + Surname; }
}
}
And then in XAML something like ...Text="{Binding FullName, Mode=Twoway}"
At this point my GUI doesn't know when property FullName is changed... how can I notify it? I've tried with ReportPropertyChanged but it return's an error...
Also, I wonder what is the best way to implement binding when one binding depends on more properties...calculated properties or value converters or something different?
Thanks a lot