Note that there are some explanatory texts on larger screens.

plurals
  1. POContent for the uri cannot be loaded
    primarykey
    data
    text
    <p>I tried to add a hyperlink in mainpage.xaml that goes on the student.xaml page. student/xaml page is situated in view/student/ For the About Page is working and for Student Page doesn't want to</p> <p>Code for hyperlinkbutton:</p> <pre><code>&lt;HyperlinkButton x:Name="Link2" Style="{StaticResource LinkStyle}" NavigateUri="/About" TargetName="ContentFrame" Content="{Binding Path=Strings.AboutPageTitle, Source={StaticResource ApplicationResources}}"/&gt; &lt;Rectangle x:Name="Divider2" Style="{StaticResource DividerStyle}"/&gt; &lt;HyperlinkButton x:Name="Link3" Style="{StaticResource LinkStyle}" NavigateUri="Views/Student" TargetName="ContentFrame" Content="{Binding Path=Strings.StudentPageTitle, Source={StaticResource ApplicationResources}}"/&gt; </code></pre> <p>Code for uri mapping:</p> <pre><code>&lt;navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed"&gt; &lt;navigation:Frame.UriMapper&gt; &lt;uriMapper:UriMapper&gt; &lt;uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/&gt; &lt;uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/&gt; &lt;uriMapper:UriMapping Uri="/Student/{pageName}" MappedUri="/Views/Student/{pageName}.xaml"/&gt; &lt;/uriMapper:UriMapper&gt; &lt;/navigation:Frame.UriMapper&gt; &lt;/navigation:Frame&gt; </code></pre> <p>and </p> <pre><code>private void ContentFrame_Navigated(object sender, NavigationEventArgs e) { foreach (UIElement child in LinksStackPanel.Children) { HyperlinkButton hb = child as HyperlinkButton; if (hb != null &amp;&amp; hb.NavigateUri != null) { if (hb.NavigateUri.ToString().Equals(e.Uri.ToString())) { VisualStateManager.GoToState(hb, "ActiveLink", true); } else { VisualStateManager.GoToState(hb, "InactiveLink", true); } } } } </code></pre>
    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.
 

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