Windows锁定屏幕以编程方式显示文本C# [英] Windows Lock Screen display text programmatically C#

查看:146
本文介绍了Windows锁定屏幕以编程方式显示文本C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例屏幕快照-Spotify锁屏信息

Sample Screenshot - Spotify Lock-Screen information

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

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

编辑:
可以看到重复的问题,所以现在的问题是-Spotify如何做到?

对于Windows10。

可以使用WPF / UWP / WinForms。

如果仅可以使用其他语言/黑客,请务必使用某些东西。

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.

推荐答案

输出:

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

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);

其次:


  1. Windows 10的详细锁定屏幕状态

  2. 快速入门-发送一个本地-tile-notification-in- Windows-10

  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!

这篇关于Windows锁定屏幕以编程方式显示文本C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆