简体   繁体   English

如何在启动应用程序时显示消息

[英]How to show a message when app is launched

如何在启动应用程序(用于Windows Phone 7)时显示消息或xaml页面,并且该消息应仅显示一次(即,该消息在下次启动应用程序时不可见?有人可以帮助我吗?这个。感谢您的辛勤工作!

Have a look at this, http://www.jimmycollins.org/blog/?p=366 看看这个, http://www.jimmycollins.org/blog/?p = 366

It allows you to check if first run before a page is displayed so you have the option to display a different page. 它允许您检查在页面显示之前是否首次运行,因此您可以选择显示不同的页面。 In your case you will display the same page but you could pass an indication to the main page or put similar first run logic in your main page. 在您的情况下,您将显示相同的页面,但您可以将指示传递到主页面或在主页面中放置类似的首次运行逻辑。

If you add a version to settings you can check for first run after update as well. 如果您将一个版本添加到设置,您也可以检查更新后的首次运行。

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

相关问题 当用户在作为 ShowDialog 启动的 window 之外单击时显示消息 - Show a message when user clicks outside a window thats launched as ShowDialog 尝试显示错误消息时应用崩溃 - App crashing when trying to show error message 确定通知启动Windows 8应用程序的时间 - Determine when a Windows 8 app is launched by Notification 如果应用程序是首次启动,如何显示页面 - How to Show a Page if Application is Launched for the First Time 数据库关闭时如何显示自定义消息 - How to show the custom message when database down 没有数据时如何显示错误消息? - How to show the Error message when there is nodata? 如何在应用程序终止然后使用 Visual Studio 以 xamarin 形式启动时进行调试 - How to debug when the app is terminated and then launched in xamarin forms using Visual Studio 通过Google Chrome本机消息传递检测exe何时启动 - Detect when exe launched via Google Chrome Native Message Passing 在控制器中记录插入失败的成功时如何显示消息或警报 - How to show message or alert when record insertion success of fail in the controller 单击按钮上的最后一个命令时如何显示消息? - How to show message when last command on button clicked?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM