简体   繁体   English

XAP中的Silverlight初始屏幕

[英]Silverlight Splash Screen within XAP

Ok, this might be a silly question but... 好的,这可能是一个愚蠢的问题,但是...

Is it possible to have a custom xaml load/splash screen within the xap? 在xap中是否可以有一个自定义的xaml加载/启动屏幕?

There is a game site I wish to upload my Silverlight game to, which only allows a single xap to be uploaded, and so I wondered whether there is a possibility of modifying the splash screen that it uses. 我有一个游戏网站希望将我的Silverlight游戏上传到该网站,该网站仅允许上传一个xap,因此我想知道是否有可能修改它使用的启动屏幕。

My gut feeling is that this is impossible, but I thought I might as well ask. 我的直觉是这是不可能的,但我想我也应该问。

You can't have a true splash screen that is within the xap file. xap文件中没有真正的启动屏幕。 The whole point is that the splash screen is displayed while the xap file is downloading, so it can't be inside of it. 整个问题在于,在下载xap文件时会显示启动屏幕,因此它不能在其内部。

MSDN上有一个很棒的页面,详细介绍了初始屏幕的几个不同方面,还有一个指导性文章 ,指导您完成基本过程。

Who ever is hosting these silverlight games should be responsible for having their "splash screen" for when the xap's are loading. 谁来托管这些Silverlight游戏,应该负责在加载xap时拥有其“启动屏幕”。

However, there is nothing from preventing you to create your own splash screen(s) as these are typical within games (and no, the point of a splash screen is not necessarily to hide the downloading/loading of something, especially in a game). 但是,没有什么可以阻止您创建自己的启动画面,因为这些在游戏中很常见(并且不,启动画面的目的不一定是隐藏某些东西的下载/加载,尤其是在游戏中) 。

Hope that helps. 希望有所帮助。

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

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