WPF Prism Request Navigate activation error

Source: Internet
Author: User

There are no problems with other test items, but some items sometimes navigate all the time to report errors!

Referring the Stocktraderri, I created a popup region in my shell

Infbehaviors:regionpopupbehaviors.createpopupregionwithname="{x:static inf: Regionnames.secondaryregion}"

In the module I am trying to load the view to the popup

New Uri ("/orderdetailsview", urikind.relative));

Orderdetailsview is a view within Orderdetailsmodule. At this point I am getting the below error

 while Get " Orderdetailsview "

Stack Trace looks like below

inch  - In 103 at        Prism.Regions.RegionNavigationContentLoader.CreateNewRegionItem (String candidatetargetcontract)

Problem solving:

You must register your objects for navigation. If you is using Prism 6 you must use

Container.registertypefornavigation<orderdetailsview> ();

If using V5 or less your must use

Container. Registertype (typeof(objecttypeof"orderdetailsview");

Edit:if using MEF, you must provide the view name in the Export Attribute:

[Export ("orderdetailsview")]  Public class orderdetailsview:usercontrol{...}

Problem Solving!

Http://stackoverflow.com/questions/33301926/wpf-prism-request-navigate-activation-error

Https://github.com/PrismLibrary/Prism/blob/master/Documentation/WPF/60-Navigation.md#basic-region-navigation

WPF Prism Request Navigate activation error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.