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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:48:38+00:00 2026-06-15T08:48:38+00:00

My team is working on a team project aplication. At the moment, we need

  • 0

My team is working on a team project aplication. At the moment, we need an event handler to check the connection status (if it’s on/off).

I had big hopes in the System.Net.NetworkInformation Namespace, but unfortunately most important things aren’t supported in wp8.

Can anyone help me with it a bit?

Edit 1#

It seems, I didn’t specifed my problem well.
I’m using Mvvm light expresion, and it does not support that namespace or at least I can’t add it.

I’m a newbie in using VS and c# atm, mayby I’m doing someting wrong, but simply when im trying to add the refernce to my project it does not list.

  • 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-15T08:48:39+00:00Added an answer on June 15, 2026 at 8:48 am

    I haven’t tried the System.Net.NetworkInformation namespace on WP8. But the new WP8 Windows.Networking.Connectivity Windows Phone Runtime namespace works just fine.

    Use Windows.Networking.Connectivity.NetworkInformation.NetworkStatusChanged to know when network conditions change and use Microsoft.Phone.Net.NetworkInformation.NetworkInterface properties or Windows.Networking.Connectivity.NetworkInformation properties to see what’s up.

        private async void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            PrintNetworkStatus();
    
            NetworkInformation.NetworkStatusChanged += NetworkInformation_NetworkStatusChanged;
        }
    
        void NetworkInformation_NetworkStatusChanged(object sender)
        {
            PrintNetworkStatus();
        }
    
        private void PrintNetworkStatus()
        {
            Dispatcher.BeginInvoke(() =>
            MessageBox.Show(NetworkInterface.NetworkInterfaceType +
                            Environment.NewLine +
                            NetworkInterface.GetIsNetworkAvailable()));
        }
    

    When I test this code snippet on my WP8 Lumia 920 it works as expected. On startup when my phone is on WiFi only I see the following MessageBox:

    Connected Messagebox

    And once I shutdown my WiFI router and the WiFi connection on the phone is lost I see the following MessageBox:

    Disconnected MessageBox

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

Sidebar

Related Questions

I'm working on a rather big project with my team and after a while,
My team working in a project using Winforms application(c#) & MSSQL 2005 as database.
My team working on a php/MySQL website for a school project. I have a
In the project my team is currently working on, we're modifying a commercial PHP
Our team is currently working on a large project which makes heavy use of
I am working with a team that works on a very large software project,
I am currently working on a rather large project with a team distributed across
A project I'm working on is suffering from some minor performance issues. Our team
I am currently working on an ASP.NET MVC project. Some developers on the team
I'm working on a fairly large project at the moment and am currently in

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.