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

  • SEARCH
  • Home
  • 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 6567571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:21:12+00:00 2026-05-25T14:21:12+00:00

I am writing an automated test suite for my WP7 app. Currently it fails

  • 0

I am writing an automated test suite for my WP7 app. Currently it fails when I try to execute several commands in a row, where one command is a navigation command and second command an email task.

So the question is how do I determine if WP7 is in progress of navigating between two pages?

Edit:

Command itself is created not in the code behind but in a separate class.

Code looks like this:

Command 1:

    private void BuildContactCommand()
    {
        var contactCmd = new RelayCommand(() =>
                                              // Command
                                              {
                                                  var ecTask = new EmailComposeTask();
                                                  // composing message here

                                                  // Command fails here
                                                  ecTask.Show();
                                              },
                                              // Can Execute
                                              () => !_isNavigating
                                         );
        _appCmdProvier.Register(contactCmd, CommandsNames.ContactSupportCmd);
    }

Command 2:

    private void BuildNavigateToDetailsCommand()
    {
        var navToDetailsCmd = new RelayCommand<string>
            (
                appId => NavigateTo("/Pages/AppDetails/AppDetailsPage.xaml?appId=" + appId)
            );
        _appCmdProvier.Register(navToDetailsCmd, CommandsNames.NavigateToDetailsCmd);
    }
  • 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-05-25T14:21:13+00:00Added an answer on May 25, 2026 at 2:21 pm

    Just found a solution.

        private void TrackNavigationStatus()
        {
            var root = Application.Current.RootVisual as PhoneApplicationFrame;
    
            root.Navigating += (s, e) => _isNavigating = true;
            root.Navigated += (s, e) => _isNavigating = false;
            root.NavigationFailed += (s, e) => _isNavigating = false;
            root.NavigationStopped += (s, e) => _isNavigating = false;
        }
    

    Let me know if there is a cleaner way to do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on building an automated functional/acceptance test suite for a project, but
I'm writing some kind of automated test suite and I want to make sure
Writing a test app to emulate PIO lines, I have a very simple Python/Tk
Here's the situation. I'm writing an automated test that walks the list of dependencies
I'm writing some automated tests in selenium, one thing which I would like to
I'm writing a small Java app using JavaMail that sends the user an automated
Im writing an automated test that will use the Instruments automator to run a
I'm writing an automated test to determine whether or not rtf files are successfully
I'm working on writing a test to be added to an automated test script,
I am writing an automated test in Java using Selenium2/WebDriver. I need to validate

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.