A first chance exception of type
'System.Windows.Markup.XamlParseException' occurred in
System.Windows.ni.dll
private async void SetBackground1(object sender, RoutedEventArgs e) { if
(await LockScreenManager.RequestAccessAsync() ==
LockScreenRequestResult.Granted) { var uri = new
Uri("ms-appx:///Assets/LockScreens/People/1.jpg", UriKind.Absolute);
LockScreen.SetImageUri(uri); MessageBox.Show("Your new lockscreen
background has been set."); } else { MessageBox.Show("You said no, so I
can't update your background."); } } } }
No comments:
Post a Comment