Dear Friends.
I have been workng on PRISM for a whle, I have done a working basic things .. now it comes to a seruios one, where I need to develop a dependable running application.
So, I have a view that show or hide controls based on user selection also some combos should show values different based on that selection, I have implemented this through a viewmodel properity, this properity get it's values from CurrentRecord class.
My view controls are binded to CurrentRecord as follows:
Please be aware that my viewmodel is implementing the NotificationObject and CurrentRecord is as follows:
Appreciated If anyone can help.
Best regards
I have been workng on PRISM for a whle, I have done a working basic things .. now it comes to a seruios one, where I need to develop a dependable running application.
So, I have a view that show or hide controls based on user selection also some combos should show values different based on that selection, I have implemented this through a viewmodel properity, this properity get it's values from CurrentRecord class.
My view controls are binded to CurrentRecord as follows:
{Binding Path=__CurrentRecord.Name__, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnException=True}" Visiability={Binding Path=ShowInd", Mode=TwoWay,Converter={StaticResource booltovisability}}"
On the OnNavigatedTo event of this view, I create a new CurrentRecord class with default properities, but that doesn't trigger the controls visability unless I switch the value again by screen selection.Please be aware that my viewmodel is implementing the NotificationObject and CurrentRecord is as follows:
private masterFile _currentRecord;
public masterFile CurrentRecord
{
get{ return _currentRecord;}
set { _currentRecord = value; RaiseProperityChanged(()=> CurrentRecord);}
}
and I change the ShowInd based on the value on CurrentRecord by subscribing to ProperityChanged eventAppreciated If anyone can help.
Best regards