Skip to content

Instantly share code, notes, and snippets.

@elbruno
Created October 24, 2017 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elbruno/7447504e5d0224dee5a165c5c5610206 to your computer and use it in GitHub Desktop.
Save elbruno/7447504e5d0224dee5a165c5c5610206 to your computer and use it in GitHub Desktop.
SurfaceDialMenuDisable.cs
using Windows.UI.Input;
using SurfaceDialApp01.Views;
namespace SurfaceDialApp01.Services
{
public static class SurfaceDialService
{
public static async void InitSurfaceDialMenu()
{
var surfaceDialConfiguration = RadialControllerConfiguration.GetForCurrentView();
var ret = await SettingsPage.GetIsSurfaceDialMenuEnabled();
surfaceDialConfiguration.IsMenuSuppressed = !ret;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment