Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7725937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:04:56+00:00 2026-06-01T05:04:56+00:00

I am creating simple app on Silverlight 4. In folder of View I have

  • 0

I am creating simple app on Silverlight 4.
In folder of View I have 2(Silverlight Pages) also in ViewModel I have 2 ViewModels.
In Silverligh project I have UserControl that hold one of page.
I need simple example of using navigation.
For example I click on button, call some method in ViewModel and this method redirect me on another Silverligh Page.Please help me, I’m suffering 3 day, and I found only very hard examples, but I bealive in simple.

<UserControl x:Class="WebServerApp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
             xmlns:pagescol="clr-namespace:SilverlightServerLib.View;assembly=SilverlightServerLib"

    Width="Auto" Height="Auto">

    <Grid x:Name="LayoutRoot" Background="White">
        <pagescol:SettingsPage/>
    </Grid>
</UserControl>

That was a UserControll that hold first Page, I need navigate to another Page.
Thank You very much!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:04:57+00:00Added an answer on June 1, 2026 at 5:04 am

    u should use a Frame control from Navigation framework(silverlight tookit).
    then u can try such approach

    <Button Content="Click">
        <i:Interaction.Triggers>
            <i:EventTrigger EventName="Click">
                <i:EventTrigger.Actions>
                    <actions:NavigateAction UriPath="/Home" TargetName="MainFrame" />
                </i:EventTrigger.Actions>
            </i:EventTrigger>
        </i:Interaction.Triggers>
    </Button>
    
    <navigation:Frame x:Name="MainFrame"                          
                      UriMapper="{StaticResource UriMapper}" />
    

    and the appropriate code for the NavigateAction:

    public class NavigateAction : TargetedTriggerAction<Frame>
    {
        public static readonly DependencyProperty UriPathProperty =
            DependencyProperty.Register("UriPath", typeof(string), typeof(NavigateAction), null);
    
        public string UriPath
        {
            get { return (string)GetValue(UriPathProperty); }
            set { SetValue(UriPathProperty, value); }
        }
    
        protected override void Invoke(object parameter)
        {
            Target.Navigate(new Uri(UriPath, UriKind.RelativeOrAbsolute));
        }
    }
    

    Also, u should allways use an UriMapper. It is a nice practice:

    <Application.Resources>
        <sdk:UriMapper x:Key="UriMapper">
            <sdk:UriMapping MappedUri="/Views/TasksView.xaml" Uri="" />
            <sdk:UriMapping MappedUri="/Views/{view}View.xaml" Uri="/{view}" />
        </sdk:UriMapper>
    </Application.Resources>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a simple app that let's the user view movies after clicking
I'm creating a simple app that loads a modal view in the root view
I am creating a simple android app to view a comic book. The pages
I've been assigned the project of creating a simple console app. that models brownian
I'm currently learning rails by creating a simple project management app. I've gotten to
I'm creating a simple WP7 app, to have all network settings in one place,
I'm creating a simple app (PHP & MYSQL) that collects information about an event,
I am creating a simple blog app and so far I have 3 tables,
I'm creating a simple alarm clock app. The problem is that i get the
I im creating a simple testing app that runs a check every hour on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.