Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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