Hi,
I have a WPF MM.NET 2010 application. One form is not storing the values entered on the form to the underlying entity so when I save, I get the validation kicking in that the data cannot be null/empty. If I edit an existing record it works fine.
I have this in the XAML file:
<mmwpf:mmBusinessWindow.DataContext>
<SamaanSystems_IBC_Business:OutboundLIATRateEntity/>
</mmwpf:mmBusinessWindow.DataContext>
The New button click has no code in it to override the default MM.net behaviour.
When debugging, the values shown on the form do not match what is in the entity so it looks like the datacontext is being pulled out from underneath the form but I can't find anywhere that is resetting it (and I don't know how to check the current datacontext when debugging).
Any help to push me towards solving this would be great.