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 4617676
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:09:28+00:00 2026-05-22T02:09:28+00:00

In my WP7 application I need to the user to take a picture before

  • 0

In my WP7 application I need to the user to take a picture before arriving to page X. So on my main page, when the user click the button to navigate to page X, I call page X with the following constructor:

Public Sub New()
    Me.Visibility = Visibility.Collapsed
    InitializeComponent()
    Me.Camera = New CameraCaptureTask
End Sub

and then on the “loaded” event I call to Me.Camera.Show()

On the “Camera.Completed” I show the page again (Me.Visibility = Visibility.Visible).

Now for the problem –
If the user, while on te camera screen, click the phone’s back button, the page that appears is Page X without the mandatory picture while I want (and the user must have meant) to go back to the main page.

So how can I override this behavior and make the app go back to main page if clicking back from the camera screen?

Thanks,

Alon

  • 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-22T02:09:29+00:00Added an answer on May 22, 2026 at 2:09 am

    I’m not familiar with Visual Basic, so I can’t really provide any code. However, what I would do is check if the PhotoResult’s stream is null when the Completed event is fired. If it is null, then a picture has not been taken and you can prompt the user to take a picture (or whatever you want to do). If it is not null, then carry on as normal.
    Alternatively, you could take a look at the PhotoResult’s TaskResult property to determine what happened.

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

Sidebar

Related Questions

I need to call web services from my WP7 client application for user login
I have a page in my wp7 application which need to display an image
I have settings page in my wp7 application. I loads for quite long time
I am building a localized wp7 application by following the MSDN article How to:
I have a user control in my wp7 application which contains two text boxes
I am using a pivot page in my wp7 application. The PivotItems are added
I need to perform facebook post into the user wall from wp7 (but without
I need to refresh a page in wp7. Searched in google and get this
I need to play an embedded video file in my WP7 phonegap application. The
I am having an WP7 application in which I need to change the Startup

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.