简体   繁体   English

带有绑定和样式的吐司通知

[英]Toast notification with binding and styling

Greetings for the day! 当天的问候!

I am totally new to UWP. 我对UWP完全陌生。 I am building a music playing app in UWP, which plays song even when windows is locked. 我正在用UWP开发一个音乐播放应用程序,即使在锁定窗口的情况下也可以播放歌曲。 To show to the player on lock screen I am trying to use Toast notification. 为了在锁定屏幕上向播放器显示,我尝试使用Toast通知。 In toast notification we can using binding to show the progress. 在敬酒通知中,我们可以使用绑定来显示进度。

<toast>
    <visual>
        <binding template='ToastGeneric'>
            <text>Default Audio Toast</text>
            <text>This toast's audio is not specified, and thus uses the system default.</text>
        </binding>
    </visual>

</toast>

I want to know can I show the normal XAML page along with all the bindings and styling in toast notification? 我想知道是否可以在Toast通知中显示正常的XAML页面以及所有绑定和样式? Is there any way to show the notification to the center of the screen for time till user logs in? 有什么方法可以将通知显示在屏幕中央,直到用户登录为止。

Thanks in advance. 提前致谢。

不幸的是,您不能在吐司通知中使用XAML。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM