Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <strong>Prism</strong> library provides a <strong>RegionNavigationService</strong> that controls <em>Navigation</em> among <em>Views</em>. <strong>RegionNavigationService</strong> implements <strong>IRegionNavigationService</strong> and a <strong><em>RequestNavigate()</em></strong> method is defined. You can resolve <em>Navigation</em> for any <em>View</em> registered in the specified <em>Region</em> (It wouldn't make sense to <em>Navigate</em> through <em>Views</em> in different <em>Regions</em>).</p> <pre><code>/// &lt;summary&gt; /// Provides navigation for regions. /// &lt;/summary&gt; public interface IRegionNavigationService : INavigateAsync { ... } </code></pre> <p>INavigateAsync:</p> <pre><code>/// &lt;summary&gt; /// Provides methods to perform navigation. /// &lt;/summary&gt; /// &lt;remarks&gt; /// Convenience overloads for the methods in this interface can be found as extension methods on the /// &lt;see cref="NavigationAsyncExtensions"/&gt; class. /// &lt;/remarks&gt; public interface INavigateAsync { /// &lt;summary&gt; /// Initiates navigation to the target specified by the &lt;see cref="Uri"/&gt;. /// &lt;/summary&gt; /// &lt;param name="target"&gt;The navigation target&lt;/param&gt; /// &lt;param name="navigationCallback"&gt;The callback executed when the navigation request is completed.&lt;/param&gt; /// &lt;remarks&gt; /// Convenience overloads for this method can be found as extension methods on the /// &lt;see cref="NavigationAsyncExtensions"/&gt; class. /// &lt;/remarks&gt; void RequestNavigate(Uri target, Action&lt;NavigationResult&gt; navigationCallback); } </code></pre> <p>If you have some custom pre and post <em>Navigation</em> work done in the <strong><em>ShowView()</em></strong> method, you can implement <strong>INavigationAware</strong>, which defines <strong><em>OnNavigatedTo()</em></strong> and <strong><em>OnNavigatedFrom()</em></strong>, on the <em>Views</em> or <em>ViewModels</em> involved.</p> <p>To see how these methods work, the following <strong>QuickStart</strong> uses <strong><em>OnNavigatedTo()</em></strong> method in order to read and set any context parameters on the new navigated <em>View</em>: </p> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/gg430881%28v=pandp.40%29.aspx" rel="nofollow">View-Switching Navigation QuickStart</a></li> </ul> <p><strong>INavigationAware</strong> documentation:</p> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/gg430861%28v=pandp.40%29.aspx#sec9" rel="nofollow">View and ViewModel participating in Navigation</a></li> </ul> <p>If this doesn't help, it would be useful to know the expected behavior the <strong><em>ShowView()</em></strong> method would have.</p> <p>Regards.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload