I am getting an error - The type or namespace name 'SettingsPane' could not be found (are you missing a using directive or an assembly reference?)

I am trying to port the existing 8.1 app to UWP.

I am getting the following error: The type or namespace name 'SettingsPane' could not be found (are you missing a using directive or an assembly reference?)

Here is a function that is similar to the functions where I get this error:

void MainPage_Legal(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
    {
        args.Request.ApplicationCommands.Add(new SettingsCommand("legal", "Legal", OpenLegal));
    }.

Can anyone suggest a solution or workaround?


ANSWERS:


I found this on the SettingsPane documentation page from Microsoft:

[SettingsPane may be altered or unavailable for releases after Windows 10. Instead of using a SettingsPane, integrate settings options into the app experience. For more info, see Guidelines for app settings.]

SettingsPane Documentation

The Guidelines for app settings

I hope it helps a litte bit!



 MORE:


 ? Scrollviewer not working on a grid
 ? Scrollviewer not working on a grid
 ? Scrollviewer not working on a grid
 ? ISupportIncrementalLoading GridView within a ScrollViewer fires LoadMoreItemsAsync continuously
 ? Setvalue to add usercontrol in a grid not work
 ? Caption of a grid in a windows universal project
 ? Adaptive Trigger Not Working in Windows 10 UWP
 ? Adaptive Trigger Not Working in Windows 10 UWP
 ? Adaptive Trigger Not Working in Windows 10 UWP
 ? Override theme brush Windows 10 UWP