Xamarin.forms 未在Prism 7.0中发布用于Xamarin表单的事件聚合器
我最近将我的Xamarin表单应用程序项目从Prism 6.3更新到Prism 7.0。除了eventaggregators之外,一切似乎都正常工作,它们得到了正确的订阅,但似乎没有发布 下面是我使用的代码的一部分Xamarin.forms 未在Prism 7.0中发布用于Xamarin表单的事件聚合器,xamarin.forms,eventaggregator,prism-7,Xamarin.forms,Eventaggregator,Prism 7,我最近将我的Xamarin表单应用程序项目从Prism 6.3更新到Prism 7.0。除了eventaggregators之外,一切似乎都正常工作,它们得到了正确的订阅,但似乎没有发布 下面是我使用的代码的一部分 public ConfigureInventoryEventViewModel(IEventAggregator ea, INavigationService navigationService):base(navigationService,ea) { T
public ConfigureInventoryEventViewModel(IEventAggregator ea, INavigationService navigationService):base(navigationService,ea)
{
TappedBackCommand = new DelegateCommand(TappedBack);
_ea.GetEvent<SetLocationEvent>().Subscribe(SetLocationDropdown,true);
}
请帮忙
Xamarin表单版本:2.5.0.280555
棱镜.形状:7.0.0396
谢谢我想你忘了这个:
\u ea=ea
public ConfigureInventoryEventViewModel(IEventAggregator ea, INavigationService navigationService):base(navigationService,ea)
{
_ea = ea;
TappedBackCommand = new DelegateCommand(TappedBack);
_ea.GetEvent<SetLocationEvent>().Subscribe(SetLocationDropdown,true);
}
public ModalPopupViewModel(IEventAggregator ea, INavigationService navigationService):base(navigationService,ea)
{
_ea = ea;
ItemTappedCommand = new DelegateCommand<string>(ItemTapped);
}
public-ConfigureInventoryEventViewModel(IEventAggregator ea,INavigationService navigationService):基本(navigationService,ea)
{
_ea=ea;
TappedBackCommand=新建DelegateCommand(TappedBack);
_ea.GetEvent().Subscribe(SetLocationDropdown,true);
}
public ModalPopupViewModel(IEventAggregator ea,INavigationService navigationService):基础(navigationService,ea)
{
_ea=ea;
ItemTappedCommand=新的DelegateCommand(ItemTapped);
}
public class SetLocationEvent:PubSubEvent
{
}
public ConfigureInventoryEventViewModel(IEventAggregator ea, INavigationService navigationService):base(navigationService,ea)
{
_ea = ea;
TappedBackCommand = new DelegateCommand(TappedBack);
_ea.GetEvent<SetLocationEvent>().Subscribe(SetLocationDropdown,true);
}
public ModalPopupViewModel(IEventAggregator ea, INavigationService navigationService):base(navigationService,ea)
{
_ea = ea;
ItemTappedCommand = new DelegateCommand<string>(ItemTapped);
}