Compartilhar via


How to launch the Settings app (XAML)

Launch the built-in Settings app by using the ms-settings URI scheme described in this topic.

For example, the following line of code displays the page of Wi-Fi settings.

using Windows.System;
...
bool result = 
    await Launcher.LaunchUriAsync(new Uri("ms-settings:network-wifi"));

For more info about launching apps by using URI schemes, see How to launch the default app for a URI.

Settings pages that you can display

The following table lists the URIs that you can use to display built-in settings pages.

The Supported SKUs column indicates whether the settings page exists in Windows 10 for desktop editions (Home, Pro, and Enterprise), Windows 10 Mobile, or both.

Category

Settings page

Supported SKUs

Uri for apps that target Windows 10

Uri for apps that target Windows Phone 8.1

Home

Landing page for Settings

Both

ms-settings:

System

Display

Both

ms-settings:display

ms-settings:screenrotation

ms-settings-screenrotation:

Notifications

Both

ms-settings:notifications

ms-settings-notifications:

Storage

Desktop only

ms-settings:storagesense

n/a

Battery Saver

Both

ms-settings:batterysaver

ms-settings-power://

Battery Saver

Both

ms-settings:batterysaver-settings

n/a

Battery Saver

Both

ms-settings:batterysaver-usagedetails

n/a

Offline Maps

Both

ms-settings:maps

n/a

Devices

Bluetooth

Mobile

Desktop

ms-settings-bluetooth:

ms-settings:bluetooth

ms-settings-bluetooth:

Connected Devices

Desktop only

ms-settings:connecteddevices

n/a

Mouse & Touchpad

Both

ms-settings:mousetouchpad

n/a

Network and Wi-fi

Wi-Fi

Mobile

Desktop

ms-settings-wifi:

ms-settings:network-wifi

ms-settings-wifi://

Airplane mode

Mobile

Desktop

ms-settings-airplanemode:

ms-settings:network-airplanemode

ms-settings-airplanemode://

Cellular

Both

ms-settings:network-cellular

ms-settings-cellular://

Dial-up

Desktop only

ms-settings:network-dialup

n/a

Ethernet

Desktop only

ms-settings:network-ethernet

n/a

Proxy

Desktop only

ms-settings:network-proxy

n/a

Data Sense

Both

ms-settings:datausage

n/a

NFC

Mobile only

n/a

ms-settings-proximity://

NFC

Mobile only

n/a

ms-settings-nfctransactions://

Mobile Hotspot

Mobile

Desktop

ms-settings-mobilehotspot:

ms-settings:network-mobilehotspot

n/a

Personalization

Lock screen

Both

ms-settings:lockscreen

ms-settings-lock://

Personalization

Both

ms-settings:personalization

n/a

Accounts

Your account

Both

ms-settings:emailandaccounts

ms-settings-emailandaccounts://

Your workplace

Mobile

Desktop

ms-settings-workplace:

ms-settings:workplace

ms-settings-workplace:

Time and language

Date & time

Both

ms-settings:dateandtime

n/a

Region & language

Desktop only

ms-settings:regionlanguage

n/a

Speech

Both

ms-settings:speech

n/a

Privacy

Calendar

Both

ms-settings:privacy-calendar

n/a

Contacts

Both

ms-settings:privacy-contacts

n/a

Feedback & diagnostics

Both

ms-settings:privacy-feedback

n/a

Location

Both

ms-settings:privacy-location

ms-settings-location:

Messaging

Both

ms-settings:privacy-messaging

n/a

Microphone

Both

ms-settings:privacy-microphone

n/a

Other

Both

ms-settings:privacy-customdevices

n/a

Radio

Both

ms-settings:privacy-radios

n/a

Speech

Both

ms-settings:privacy-speechtyping

n/a

Webcam

Both

ms-settings:privacy-webcam

n/a

Update & Security

Windows update

Both

ms-settings:windowsupdate

n/a

 

How to launch the default app for a URI