Windows锁定屏幕以编程方式显示文本C#

Rho*_*nin 6 .net c# visual-studio

示例屏幕截图-Spotify锁屏信息

在此处输入图片说明

如何在锁定屏幕上显示信息?就像Spotify一样。

编辑:可以看到问题是重复的,所以现在的问题是-Spotify如何做到这一点?
对于
Windows10。无论使用什么WPF / UWP / WinForms。
如果仅可以使用其他语言/黑客-一定要这么做。

Rho*_*nin 7

输出:

锁屏屏幕拍摄

我的代码运行示例(在按钮事件中,它将在应用程序启动时无法启动):

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);
Run Code Online (Sandbox Code Playgroud)

追随者:

  1. Windows 10的详细锁定屏幕状态
  2. 快速入门在Windows 10中发送本地通知

感谢您对上面链接的评论提供帮助!