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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:58:15+00:00 2026-06-13T02:58:15+00:00

I have a button that activate a service but before that service is activate

  • 0

I have a button that activate a service but before that service is activate i need to force the user to enter a text, for that task i create a user control that allow the user to enter text and validate it, on that control i have 2 buttons OK and cancel, OK button is working fine but the cancel is supposed to hide the popup, but the event don’t get triggered, i need to hit the button several times before that happen, i am also getting a similar problem if the person hits back i cant get rid of the popup without closing the app. What is the best approach to work with popup and in this case why is the event is not getting trigger on the first hit

public partial class TicketView
{
Controls.TextInputBox textInputControl;

    private void InitCloseTxtInput()
    {
        textInputControl = new Controls.TextInputBox(8, 0);
        textInputControl.CancelBtn.Click += new RoutedEventHandler(CancelBtn_Click);
        textInputControlForCamara.CancelBtn.Click += new RoutedEventHandler(CancelBtn_Click);
    }
    private void AppBarBtn_Click(object sender, EventArgs e)
    {
        InitCloseTxtInput();
        PivotContainer.IsEnabled = false;
        this.popup = new Popup();
        this.popup.Margin = new Thickness(0, 150, 0, 0);
        this.popup.Child = textInputControl;
        this.popup.IsOpen = true;
    }
    void OkBtnOnPopUP_Click(object sender, RoutedEventArgs e)
    {
       //Call Service
    }
    void CancelBtn_Click(object sender, RoutedEventArgs e)
    {
        this.popup.IsOpen = false;
        this.PivotContainer.IsEnabled = true;
    }

}

If anyone have any out of question recommendation for this piece of code, Please tell me.

  • 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-13T02:58:16+00:00Added an answer on June 13, 2026 at 2:58 am

    This line was the problem don’t exactly know why but when trying to re do de control i comment this line and all start to work just fine

    this.popup.Margin = new Thickness(0, 150, 0, 0);

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

Sidebar

Related Questions

I have a activate button in my CMS that allows the user to quickly
I have button that a user selects and I pop up a AlertDialog to
I have event Button that creates text box in run time. Private Sub Button1_Click(ByVal
I have a button on a spreadsheet that, when pressed, should allow the user
I have a button that can have a focus css class associated with it
I have a button that cause an image to display the image full screen
I have a button that I want to make disappear if anything is tapped
I have a button that is supposed to close a modal panel and render
I have a button that when clicked will run a stored procedure on a
I have a button that I'm creating in a UIViewController like so: TOLoginButton* button

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.