Closed leroygumede closed 6 years ago
i am a little confused as to your scenario. this project just implements INPC. it does not map between view model and model.
Perhaps share a working solution of what you want to achieve?
@SimonCropp Thanks for the reply :), I created a sample Here. . In Short I have a Group List and I want a Event handler when a user selects a item.
It works and gets fires in the Model
public bool IsVisible { get; set; }
public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged(string propertyName)
{
Debug.WriteLine("It works here");
var propertyChanged = PropertyChanged;
if (propertyChanged != null)
{
propertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
But For some reason It does not get to the ViewModel(MainPageViewModel.cs) (When you disable a checkbox , I want to review the list Items and later on show and hide items)
so how would you make it work if u were not using propertychanged.fody?
The main problem had to do with my Grouping logic and was not a fody issue , all is resolved :) . I was trying to fix a problem with fody rather than fix the problem itself.
I know its a stupid Question But how do I Intercept From Model to ViewModel ?
I tried putting this in my ViewModel but nothing happens, Am I missing something ? I'm Using Xamarin Forms, Prism Model
ViewModel
Do I need to use PropertyChangedNotificationInterceptor ? How do I implement it in my View-Model , Any advice would be awesome