WebUICachedFileUpdaterActivatedEventArgs.SplashScreen 属性

定义

获取初始屏幕对象,该对象提供有关从初始屏幕过渡到激活的应用的信息。

public:
 property SplashScreen ^ SplashScreen { SplashScreen ^ get(); };
SplashScreen SplashScreen();
public SplashScreen SplashScreen { get; }
var splashScreen = webUICachedFileUpdaterActivatedEventArgs.splashScreen;
Public ReadOnly Property SplashScreen As SplashScreen

属性值

提供初始屏幕信息的对象。

实现

示例

初始屏幕示例演示如何在其激活的事件处理程序中检索 splashScreen 对象(如果应用已启动):

// Identify and respond to all app activated events.
WinJS.Application.onactivated = function (eventObject) {

    // App was launched
    if (eventObject.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) {
        // Retrieve splash screen object
        splash = eventObject.detail.splashScreen;

        // Add code get image coordinates or listen for the dismissed event

        WinJS.UI.processAll();
    }
    // Add code to respond to other activated event types
};

在示例中, eventObject 对象提供有关已激活事件的信息。 在 ActivationKind.launch 激活事件中, eventObjectWebUILaunchActivatedEventArgs 对象。

适用于