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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:28:57+00:00 2026-06-04T01:28:57+00:00

I have a check box, which when it is checked, fires a call to

  • 0

I have a check box, which when it is checked, fires a call to a web service.

This works fine as it is using a toggle function in a database which is updating as expected.

However my problem being I need the toggle function to be activated when a user unchecks the checkbox.

For some reason this does not seem to fire the toggle function in the database. I am using the following code –

 private void checkBox1_Checked(object sender, RoutedEventArgs e)
    {

        if (checkCounter1 == 0)
        {

        }
        else
        {
            //WebService call
        }
        checkCounter1 = 1;
    }

I tried the checkBox_Changed event however this did not work. How can I do this?

  • 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-04T01:28:59+00:00Added an answer on June 4, 2026 at 1:28 am

    Since SL is more or less WPF. That’s why i think in SL just like WPF there should be Checked and UnChecked event.

    Assign Single event code to both these events (Since both take same arguments) like this

    private void checkBox1_Checked_Unchecked(object sender, RoutedEventArgs e)
    {
        if (checkBox1.IsChecked)
        {
            //WebService call
        }
        else
        {
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Android: i am using gps check box in my application, which user check this
I have a checkbox which in some cases may be disabled and checked using
hello friends i have a check box list which contains all the courses kept
I have inserted some check box values in mysql database using PHP And in
In the ASP.NET MVC 3.5 app. I have a check box, Food/Bev, which is
I have a checkbox when user checked that check box means. I need to
I have got a HTML table which contain a check box in <TH> and
I have a check box which will change the value of a textfield to
I am using a ListWiew which has checked property selected so it have a
I have a checkbox who's checked value is bound to a binding source which

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.