Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/56.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xamarin.forms 未在Prism 7.0中发布用于Xamarin表单的事件聚合器_Xamarin.forms_Eventaggregator_Prism 7 - Fatal编程技术网

Xamarin.forms 未在Prism 7.0中发布用于Xamarin表单的事件聚合器

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

我最近将我的Xamarin表单应用程序项目从Prism 6.3更新到Prism 7.0。除了eventaggregators之外,一切似乎都正常工作,它们得到了正确的订阅,但似乎没有发布

下面是我使用的代码的一部分

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);
}