Windows Lock Screen display text programmatically

2020-03-03 06:58发布

Sample Screenshot - Spotify Lock-Screen information

enter image description here

How can I display information on the lock screen? Like Spotify does.

EDIT: Can see question is duplicated, so, the question now is - how Spotify do this?
For Windows 10.
Using WPF/UWP/WinForms whatever.
If it is possible only using other language/hacks - always something.

1条回答
Juvenile、少年°
2楼-- · 2020-03-03 07:45

Output:

LockScreen ScreenShoot

My code to run example (in button event, it won't start while application is starting):

TileContent content = new TileContent()
{
    Visual = new TileVisual()
    {
        LockDetailedStatus1 = "Meeting with Thomas",
        LockDetailedStatus2 = "11:00 AM - 12:30 PM",
        LockDetailedStatus3 = "Studio F",

        TileWide = new TileBinding() { }
    }
};
var notification = new TileNotification(content.GetXml());
TileUpdateManager.CreateTileUpdaterForApplication().Update(notification);

Followed:

  1. Detailed-lock-screen-status-for-windows-10
  2. Quickstart-sending-a-local-tile-notification-in-windows-10

Thanks for help to people in comments for the links above!

查看更多
登录 后发表回答