Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Lock Screen display text programmatically C#

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.

like image 872
Rhonin Avatar asked Oct 02 '17 14:10

Rhonin


1 Answers

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!

like image 103
Rhonin Avatar answered Nov 02 '22 14:11

Rhonin