共用方式為


WebUIFileOpenPickerActivatedEventArgs.SplashScreen 屬性

定義

取得啟動顯示畫面物件,提供從啟動顯示畫面轉換至啟動應用程式的相關資訊。

public:
 property SplashScreen ^ SplashScreen { SplashScreen ^ get(); };
SplashScreen SplashScreen();
public SplashScreen SplashScreen { get; }
var splashScreen = webUIFileOpenPickerActivatedEventArgs.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 activated 事件的情況下,是 eventObjectWebUILaunchActivatedEventArgs 物件。

適用於