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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:44:29+00:00 2026-05-30T01:44:29+00:00

bit of a strange one… when my app is running I add a custom

  • 0

bit of a strange one… when my app is running I add a custom control to a StackPanel on the click of a button like so…

void btnAddPlayer_Click(object sender, EventArgs e)
{
   PlayerControl sbItem = new PlayerControl();
   ctlPanel.Children.Add(sbItem);
}

(ctlPanel is a StackPanel PlayerControl is a standard Control inherited from UserControl)

So I add one or two, not a problem… if I multi-task on the phone to a different app, then multi-task back to my app, not a problem… however, if I multi-task away (or hit the windows phone button) and then instead of multi-tasking back, I just click on the icon (as if Im running the app again) it reloads my app but without any PlayerControl’s in the StackPanel … and while debugging, it doesnt hit the InitializeComponents() method in the pages constructor (of course this could be because it might not debug it when you run it straight from the menu)

Anyone know if theres a way to only allow an app to be run once (and dont restart it if the user runs the app again)????

  • 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-30T01:44:30+00:00Added an answer on May 30, 2026 at 1:44 am

    It does not work that way. You can save the “state” of your app and load that when you start the application. Look at “Tombstoning” for windows phones. Example, you can save in the local storage the current screen id and any other necessary data and when you launch the app, if you have something in local storage you load that screen, else you start with your homepage.

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

Sidebar

Related Questions

This a bit of strange one.... We have an internal web app that runs
I'm having facing problemind with LDAP, its bit strange one. My Web server is
I've faced a bit strange problem. There is a site client would like to
I have a bit of a strange problem. I have a music app that
Bit of a strange one here, i have a CCTV system and contacted the
I've got a bit of a strange one for you (so to speak). I've
This is a bit of a strange one but I've just seen something on
I know this is bit of a strange one but if anyone had any
A bit of a strange one, I want to write a MySQL query that
This is a bit of a strange one, but I've been struggling for a

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.