1

I have some trouble with the Windows 10 Lock Screen. I want to show their my "own text" programmatically with C# (like Spotify)

I tried something with UWP, I managed to get normal toast messages, but I couldn't display any kind of text or badge on the lock screen.

I want something like on this image: screenhot of windows lock screen while playing music in google chrome

Thanks for any kind of help

Edit: Code which I tried but it didn't work. When I click on a button this happens:

ToastContent content = new ToastContent()
            {
                //Duration = ToastDuration.Long,
                Scenario = ToastScenario.Reminder,
                Visual = new ToastVisual()
                {
                    BindingGeneric = new ToastBindingGeneric()
                    {
                        Attribution = new ToastGenericAttributionText()
                        {
                            Text = "Hello World"
                        }
                    }
                },
                Actions = new ToastActionsCustom()
                {
                    Buttons = {
                new ToastButton ("mycontent", "myargs")
            }
                }
            };
            var notification = new ToastNotification(content.GetXml());
            ToastNotificationManager.CreateToastNotifier().Show(notification);
wpferr19
  • 21
  • 4

0 Answers0