Xamarin.Forms MasterDetailPage PropertyChanged.Fody 不工作
Xamarin.Forms MasterDetailPage with PropertyChanged.Fody not working
我在 Visual Studio 中使用 Xamarin.Forms。现在我遇到了 ImplementPropertyChanged (Nuget: PropertyChanged.Fody) 无法正常工作的问题。此 Nuget 和 MasterDetailPage 是否存在已知问题?
我使用 MVVM 模式并有一个实现 PropertyChanged 的 BaseViewModel。
[ImplementPropertyChanged]
public class BaseViewModel
{
public BaseViewModel()
{
}
}
每个ViewModel都是这样
public class MyViewModel() : BaseViewModel
{
}
谢谢,
一月
您忘记在 BaseViewModel
中实施 INotifyPropertyChanged
好的,我修好了。我的 BaseViewModel 现在使用:INotifyPropertyChanged 而不是 nuget。为我工作。
我在 Visual Studio 中使用 Xamarin.Forms。现在我遇到了 ImplementPropertyChanged (Nuget: PropertyChanged.Fody) 无法正常工作的问题。此 Nuget 和 MasterDetailPage 是否存在已知问题?
我使用 MVVM 模式并有一个实现 PropertyChanged 的 BaseViewModel。
[ImplementPropertyChanged]
public class BaseViewModel
{
public BaseViewModel()
{
}
}
每个ViewModel都是这样
public class MyViewModel() : BaseViewModel
{
}
谢谢, 一月
您忘记在 BaseViewModel
INotifyPropertyChanged
好的,我修好了。我的 BaseViewModel 现在使用:INotifyPropertyChanged 而不是 nuget。为我工作。