question

StevenYoung-5410 avatar image
0 Votes"
StevenYoung-5410 asked ·

How to get the info from a URI (ms-settings: xxxxxxx)

In Windows 10, you can see the Setting items when you open System Settings.

  1. I want to get the friendly name from a specified URI.
    For example:
    Get "Battery Saver" from the URI "ms-settings:batterysaver-settings"
    Get "Diagnostics & feedback" from "ms-settings:privacy-feedback"
    Get "Sync your settings" from "ms-settings:sync"

Please view the names and URIs from link below
https://www.tenforums.com/tutorials/78214-settings-pages-list-uri-shortcuts-windows-10-a.html

  1. How to find out which group the sub page belongs? for example
    the "SettingsPageAccountsSync (ms-settings:sync)" belongs the "Account" group,
    the "SettingsPageBackground(ms-settings:personalization-background)" belongs the "Personalization" group.

  2. How to get the icon of page like the Windows Setting?

Are there the APIs?


Thank you.

windows-uwp
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, is there any update? Does the answer help?

0 Votes 0 ·
FayWang-MSFT avatar image
0 Votes"
FayWang-MSFT answered ·

Hello,​

​Welcome to our Microsoft Q&A platform!

I want to get the friendly name from a specified URI. How to find out which group the sub page belongs?

The ms-settings link is mainly used to wake up the windows settings app, we can only launch the app but there is no api can get the friendly name and find out which group the sub page belongs.

How to get the icon of page like the Windows Setting?

Also we can't get the icon directly, but you can use Segoe MDL2 icons to choose the icon you want to display.




·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PavelOtych avatar image
0 Votes"
PavelOtych answered ·

Hi, documentation of the URIs is sorted by the specific categories so you can easily see which URI belongs to which category - I suppose that's what you're after: https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

StevenYoung-5410 avatar image
0 Votes"
StevenYoung-5410 answered ·

Sorry, I need to get the category for each URI programmatically.

· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Currently, there is no api can directly get the category for each URI programmatically.

0 Votes 0 ·

Hi, can this answer help you?

0 Votes 0 ·