???????? ???????? ? ??????? ???????? ??????? ??????????

?????? ?????????? — ??? ???? ?? ??????? ??????????? ??????? ? ???????? ?????????????? ? ????????????? ? Windows 8, ??????? ????? ??????? ?????? ???????? ??? ????????????, ??????? ???????????? ???????? ?? ??????? ?????? ??????????. ????????? ?????????? ????????? ???????, ??????????, ??????? ?????? ??????????? ?? ?????? ??????????. ? ???? ?????? ? ????????, ??? ??????? ?????? ??????????? ? ?????? ??????????? ????????? ??????? ??????????, ? ??????, ?????? ?????? ?????????? ??? ????? ??? ???????????? ?????????????? ??????????? ? ?????????????. ? ?????????? ?????? ??????? ?????????????? ??????? ??????????, ??????? ????? ????????? ? ????? ???????????, ? ?????? ????????? ???????? ???????, ? ??????? ??????? ??????? ??? ???????? ?????????? ? ????? Metro.

????? ??????? ??????????

???? ?? ??? ????????? ?????? ?????????? ????????? ?????? ?????????? ???, ????? ??? ?????? ???? ?????? ? ???????? ? ???????? ?????????, ?? ?????? ???? ??????? ? ??????????? ?????????? ????? ??????????. ? ????????? ?????? ???????? ???????? ????????? ??????? ??????????, ?? ???? ???????? ?? ????????? “?? ???????????” ? ????????? “???????????”.

?????, ????????????, ??? ?????? ?????????? ??????????? ? ????? ????????? ???? ?????????? ? ????? Metro: ?????? ?????????? — ??? ??????? ?? ????????? "?? ???????????" ? ????????? "???????????".
  ????????? ?????????? ?????: ?????? ?????????? — ??? ??????? ?? ????????? “?? ???????????” ? ????????? “???????????”.

????????? ?????? ?????????? ??????????? ? ????? ?????, ????? ??????????? ????? ??????? ??? ????? ??????????. ???? ?? ?? ?????? ??????????? “?? ????” ? ?????????????, ?? ? ??????????? ????????? ???. ??? ?????? ?????????? (??. ????????? ??????: ????????? ?????????? Windows 8 ? ????? ??????????) ?? ???????????, ??? ?????? ?????? ????? ? ????????????? ??? ??????? ?????? ??????????. ?? ????, ??? ?? ??????????? ???? ???????, ???????, ????? — ??????? ??? ?????? — ????? ?????? ????????????? ???????????. ????? ????, ?? ????? ????? ????????, ????? ?? ???????????? ???????????? ? ?????? ?????????? ????? ? ?????.

?????? ??? ? ??? ????????? ???????????? ???????????? ???????? ??????????? ??????? ??????????, ????? ??????????? ?????????????????? ????????, ??????????? ??? ????? ????????.

????? ???????????? ??????? ?????? ??????????, ??? ???????????? ? ???????????? ?????-????????. ????? ?????????? ????????? ???????? ?????-???????? ???????????? ?? ???? ?????, ???? ?????????? ?? ????? ?????? ??????????? ???? ????. ??? ???? ?????-???????? ???????? ? ?????????? ?????? ?????????????? ??????????.  ?????????????????? ???????? ??? ??????? ??????????.

????? ???????????? ????????? ??????????, ??? ????? ?? ???????????? ?????-????????. ????? ?????-????????, ????????? ?? ??????????? ???????? 620×300 ? ????????? ???????????? ????, ????? ?????? ?????????? ? ????? Metro. (?????????? ?? ????????? ??????-???????? ??. ? ?????? ??????? ???????????. ?????????? ??????-????????.) Windows ?????????? ?????-???????? ?? ?????? ?????, ????? ???????????????? ?????????????, ???? ??????????? ????????? ??????????. ??? ??????? ????? ?????????? ???????? ??????? activated, ??????????? ??? ????????? ????? ???????? ?? ?????????????, ????????? ??? ??????????? ?????????? ????????????????? ??????????. ? ????? ????????? ????? ?????????? ?????????? ??????? ??????????, ??????????? ????????, ?? ??????? ????????? ???????, ?/??? ????????? ????, ???? ?? ?????????? ???????????? ??? ?????? ?? ??????????. ????? ????????????? ????????? ? ?????????? ?????? ? ????, ????? ??????? ?????-????????, ??? ?????? ??????????? ???? ?????? ????. ??? ???? ??????????? JavaScript ?? ????????? ????????? ??????? ????????, ??? ??? ??? ?????????????? ????????????? ??? ??????????? ????????? ?????? ?????????. ?????? ??????????? C# ????????? ????????? ??? ???? ??????????? ?????? Window.Current.Activate. ?? ???????????? ?????????? ???? ????????, ??? ??? ? ??? ??????, ???? ???? ?? ????? ?????????? ? ??????? ????????????? ??????? (????? 15 ??????), ?????? ?????????? ????? ?????????. ????? ????, ??, ????????, ???????? ??????????? ???? ??? ????? ??????, ??? ??? ?????????? ??????????? ??????-???????? ???????????? ?????? ?? ???? ?????? ????????????. ?? ??????????? ?????????? ???? ????? 2–3 ???????, ????? ?????????? ???????????? ???????? ?????????? ???? ?? ????????? ????????????.

????? ??????????? ???? ?????????? ? ???????? ??????-???????? ?????????? ????????? ?? ???? ?????????? ??????????????? ? ?????????????. ?? ???? ???????, ??? ?????? ??????? ?????? ?????????? ????? ??????????? ?????????????. ? ??????????? ?? ?????????? ????? ???? ??????? ????????? ????????. ? ?????????? ????????? ???????? ? ???????? ???? ???????????? ?? ??????? ???????? ?????????????? ??????? ??????????, ??????? ????? ????????? ? ??????????? ?? ??????????:

  • ??????????? ?????? ??????????

???????? ??? ??????????, ??????? ?? ??????? ??????? ?? ?????????????? ???????? ? ????? ?????? ? ?????????????.

??????. ?????????? ???????, ??????????? ?????? ??????????? ??? ???????? ??? ????????? ????????. ??????? ???????? ?????? ?????????? ??????? ?????? ?? ?????????? ???? ??? ????? ?????? ?????????????.

  • ??????????? ?????? ??????????

??????? ???????? ??? ??????????, ??????? ??? ??????? ????????? ??????? ???????? ??????????.

??????. ?????????? ??? ??????, ??????????????? ??? ???????????? ????, ???????? ? ????? ????????????. ??? ??????? ????? ?????????? ?????????? ????????? ?????????? ????????????.

  • ??????????? ?????? ??????????

???????? ??? ??????????, ??????? ????? ???????????? ????????????????? ?????????? ????????? ?????????? ???????? ?? ???????? ??????. ??? ???????? ????? ???????? ? ???? ?????? ?? ???? ??? ?????????? ???????? ?????-?????? ??????.

??????. ?????????? ??????????, ??????? ?????????? ????????? ?????????? ? ??????? ?? ?????????? ????????????. ????? ?????????? ?????????? API-?????????? REST ??? ????????? ?????????? ?? ???? ? ?????????? ?????????? ?????? ?? ??????? ????????.

  • ?????????? ?????? ??????????

?????? ??? ??????????, ??????? ??? ??????? ????????? ????????? ??????? ??????????? ??????, ????? ??? ?????? ?????????? ?????????? ??? ??????? ???????.

??????. ?????, ??????? ????????? ??????????, ?????? ?? ???????????? ??????? ??????. ??? ?????????? ?????????? ??? ????, ????? ??????????, ????? ???????? ??????? ?????????? ??????? ????????????.

??????????? ?????? ??????????

??? ?????? ?????????? ??????????? ???????? ??????????? ?????? ?????????? (?????? ?? ?????????). ? ???? ?????? ??????????? ? ???????? ??????-???????? ?????????? ?????????????? ???????? Windows. ?????-???????? ???????????? ?? ?????????? ????????? ? ?????????????? ????, ????? ???? ??????????? ??????? ????????????? ??????? ? ??????? ???????? ??????????. ??????????? ??????????? ??????, ???? ??????? ???????? ???????? ??????????? ? ?? ??????? ?? ?????????????? ???????? ????????. ???? ?????????? ?????????? ?????? ? ????????????? ????? ??, ??? ????????????? ???????????? ????????? ??? ???????????? ????????. ????? ????, ?? ??????? ????? ??????!

???? ???????? ?????? ???????????? ??????? ? ?????????????? Internet Explorer 10 ?? Consumer Preview. ??? ??????? ?????????? ???????????? ????? ???????????? ?????-????????. ?????-???????? ???????? ?? ?????? ?? ????????? ??????????, ????? ???? ?? ?????????? ???????? ? ?????? ???? ???????????? ??????? ????????. ? ?????? ?????? ?? ??????? ???????? ???????????? ????????? ?????????? ????????????? ????????, ??????? ????? ?????? ? ??????, ????????? ???? ????????? ?? ????? ??????????? ??????.

???? ??????? ??????????? ?? ????????? ???????????:

  1. ???????????? ??????? ?????? ??????????.
  2. ???????????? ?????-????????.
  3. ???????????? ??????? ???????? ??????????.

??? ?????? ?????? ???????????? ?????-????????. ????? ????? ?????????? ??????? ????????????? ?????????? ?????-???????? ?????????? ????????, ? ?????? ???? ???????????? ??????? ????????. 
??????? ???????????? ??????? ??????????.

????? ??????????? ??????? ??????? ?? ?????????, ??????? ?????????????? ???????? ?? ?????????. ?????? ??????? ? ????????? ?????????? ??????????? ??????-???????? ???????? 620×300 ? ??????? ????????? ??????? ????????, ????????? ??????????? ???????. ????? ????????? ???????????, ?????-???????? ?????????? ???????? ? ?????? ???? ???????????? ??????? ????????, ????? ???? ?????????? ????? ????????????.

??????????? ?????? ??????????

??? ??????????? ?????????? ??????? ???????? ?????? ?? ?????????. ? ???? ?????? ????? ???????? ??????-???????? ?????????? ??? ???????? ? ?????? ? ??????????????. ?????? ????????? ??????????? ?? ??????? ????? ??????? ?? ??????????, ??????? ????? ??????? ?? ????????? ????????? ??????? ? ???????????? ??????. ??? ????? ?????? ?????????? ????????? ???????? ?????? ???????????? ??????? ??????????, ??????? ????????????? ???????????? ???????? ?????????? ??? ????????????? ? ???????????? ?????? ? ?????? ??????????. ? ???? ??????? ????? ???????? ??????-???????? ???????????? ????????? ??????? ???????? (??????? ???????? ??? ????????), ? ???????????? ??????????? ???????. ??????? ?? ???????? ????????? ???? ??????????, ?? ?????? ??????? ?? ??, ??? ?????????? ??? ??? ???????????. ?? ????????? ??????????? ???????? ?????? ???????? ???????????? ??????? ? ?????????????? ?????????? “??????” ?? Consumer Preview. ????? ???????????? ????????? ??????? ???????? ? ???????????? ??????????? ???????? ??????????? ???????.

???? ??????? ??????????? ?? ????????? ???????????:

  1. ???????????? ??????? ?????? ??????????.
  2. ???????????? ?????-????????.
  3. ???????????? ????????? ??????? ????????. ???????? ???????? ?? ????????? ???? ??????????, ???????????? ? ??????? ????? ??????.
  4. ???????????? ??????? ???????? ??????????.

??? ?????? ?????? ???????????? ?????-????????. ????? ????? ?????????? ? ???????? ??????? ????????????? ?????????? ????????? ??????? ????????. ??? ??????? ???????, ?? ??????? ??????????? ???????. ????? ?????-???????? ?????????? ???????? ? ?????? ???? ???????????? ????????? ??????? ????????, ?????????? ???????? ?????????? ????????? ??? ????????.  ??????? ???????????? ??????? ??????????.

????? ??????????? ??????? ???????????? ??????? ??????????, ???????? ??????????? ?????? ????????????? ??????? ???????? ?????????? ? ?????????? ??? ? ???????? ????????? ????????. ????? ?? ????? ????????? ??????? ????????? ?????? ????????, ????????? ??? ?????????? ???????? ?????????. ????????? ??????????? ???? ???????? ???????? ????????????, ?????-???????? ????? ?????????, ???? ??? ??? ??? ???????????. ? ?????????? ???????????? ????? ????????? ??????????? ?????????? ??????? ????????.

???? ?? ?????? ??????, ????? ?????? ??????????? ?????-????????, ?? ?????? ??????????????? API ??????-????????. ???? API ???????? ??????? SplashScreen.Dismissed, ??????? ??????????, ????? ????????? ??????? ?? ??????-???????? ? ????????? ???????? ??????????. ??? ????? ????????? ????????, ???? ?? ?????? ?????, ????? ???????????? ????????? ??????? ????????.

JavaScript

??? ????? ?? ?????????? ???????, ???? ?????????? ????? ?????? ?????????? ???????? ?? ?????????? ??????? ???????? ?????? ????????? ?????? activated. ????? ????????????? ??????, ????? ??????????? ?????-????????, ??????????? ????????? ??????? activated ??? ????????? ??????? ??????-????????. ????????? ???? ??????, ????????? ??????????? ??? ??????? dismissed, ????? ???????? ??????????? ? ???????? ??????-????????.

app.onactivated = function (eventArgs) {    if (eventArgs.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) {        // Begin executing setup operations.        performSetupTasks();

        // Retrieve splash screen object.        var splash = eventArgs.detail.splashScreen;

        // Register an event handler to be executed when the splash screen has been dismissed.        splash.addEventListener("dismissed", onSplashScreenDismissed, false);        ...    }};

function performSetupTasks() {    // Begin additional loading tasks here…    ...}

function onSplashScreenDismissed() {    // The splash screen has dismissed and the skeleton landing page is now in view.    ...}

C#

?????????? ?? ????? C# ????? ?? ?????????? ?? ??????????? ????. ????????? ????????? ????????, ??????????? ??? ?????????? ??????? ????????, ?? ????? ?????????. ????? ??? ????????????? ???????? ?????? ??????-???????? ?? ?????????? ??????? activated ? ????????? ??????????? ??? ????????? ??????????? ? ???????? ??????-????????.

async protected override void OnLaunched(LaunchActivatedEventArgs args){    // Begin executing setup operations.    PerformSetupTasks();

    // Retrieve splash screen object.    SplashScreen splashScreen = args.SplashScreen;

    // Register an event handler to be executed when the splash screen has been dismissed.    splashScreen.Dismissed += new TypedEventHandler<SplashScreen, object>(eSplash.onSplashScreenDismissed);    ...}

internal void PerformSetupTasks(){    // Begin additional loading tasks here…    ...}

internal void onSplashScreenDismissed(Windows.ApplicationModel.Activation.SplashScreen sender, object e){    // The splash screen has dismissed and the skeleton landing page is now in view.    ...}

??????????? ?????? ??????????

??? ??????????, ??????? ????????? ?????????????? ?????? ?? ???????? ????? ???????, ????????? ???????? ??????????? ??????. ?? ??????? ????????, ??? ? ???? ???? ???? ??????????: ????????? ???????????? ????? ?? ????? ?????? ????????? ????????, ??????? ???????? ????? ?????????? ????????????. ??-?? ???????? ?? ??????-???????? ? ????????? ??????? ???????? ????????????? ????? ??????????, ??? ???? ??? ??????????? ???????? ????????. ? ?????????, ????? ??? ????????????, ???????? ????????????? ????? ????? ??????? ???????????? ??????? ??????????.

? ???? ???????? ???????????? ????????? ???????????? ??????-????????, ??????????? ??????? ??????? ? ????????????? ????????? ????????. ??? ???????? ???????????? ??????-???????? ?????????? ?????? ??????? ???????? ?????????? ??????????? ?????-????????. ??????????? ?????-???????? ????????? ????????? ? ?????????? ? ????????????? ? ?????????????? API ??????-????????. ???? API ????????????? ???????? ? ????????????, ? ??????? ??????? ????? ??????? ??????????? ?????-???????? ?????????? ???????? ??????-???????? (?? ??????????? ?????????? ???? ?????????? ? ???? ?????? ??? ???????? ? ????????) ? ????? ?????? ???????? ???? ? ???????? ?????????????, ??? ????????? ?????????? ????????? ???????????? ???????? ????????. ???? ???????????? ??????????? ?????-????????, ?????????? ????? ?????????? ?????????? ?????, ??????????? ??? ?????????? ??????? ???????. ????? ?????????? ???????? ?? ?????? ??????? ?? ???????????? ??????-???????? ? ??????? ????????.

???????? ?????? ??????????? ?????? ???????? ? ??? ?????????, ????? ????????????? ????? ???????? ???????? ????? ??????? (????????, ?????? ???????? ??????????? ?????? ???????????). ???? ?? ????? ??????? ??? ????????? ????????? ??????? ????????, ?? ????? ???????????? ??????????? ??????. ?? ????? ??????? ???????? ??? ???????, ????? ????? ????????? ?? ??????? ???????? ????????? ?????????, ??? ??? ???? ????????? ????????? (???? ?? ?????? ?? ?????????? ?????? ?? ????).

? ????????? ??????? ??????? ??????? ???????????? ??????? ?????????? “??????” ?? Windows 8 Consumer Preview. “??????” — ??? ?????????? ?????? ??????????, ??????? ????? ????????????? ?????? ???????????? ???????, ??? ??? ?? ????? ??????? ?????????? ???????? ? ?????? ?? ???? ????? ???????????? ??????????? ?????-???????? (??????????? ???????????? ?????? ? ?????? ? ?????? ?????? ?? ????? ??????).

???? ??????? ??????????? ?? ????????? ???????????:

  1. ???????????? ??????? ?????? ??????????.
  2. ???????????? ?????-????????.
  3. ???????????? ??????????? ?????-???????? (? ??????????? ???? ?????????? ? ???? ??????).
  4. ???????????? ??????? ???????? ??????????.

??? ?????? ?????? ???????????? ?????-????????. ????? ????? ?????????? ? ???????? ??????? ????????????? ?????????? ??????????? ?????-????????. ?? ???????? ???? ??????????? ?????-???????? ????????? ???????? ??????-????????, ?????? ??????????? ?? ??? ????? ???????????. ? ???? ?????? ?????????? ????? ?????? ???????? ???????? ? ??????? ? ??????????? ??????? ????????, ????? ????? ?????? ? ?????. 
??????? ???????????? ??????? ??????????.

????? ??????????? ??????? ???????????? ???????, ??????? ???????????? API ??????-????????. ? ??????? SplashScreen.ImageLocation ?????????? ????? ???????? ?????????? ??? ??????????? ??????-????????. ??? ?????, ????????? ??????????? ????????? ??????????? ?? ??? ?? ????? ????? ???????????? ??????-????????, ????? ??? ???????????? ????? ??????? ???????? ???????. ??? ???? ????????? ? ?????????? ???????, ?????? API ????? ????????????? ??????? SplashScreen.Dismissed, ??????? ?????????? ??? ? ???????? ?? ???????? ??????-???????? ? ????????????.

??? ? ??????, ?? ????? ????????? ?? ?????? ????????? ?????????????? ??????. ???? ?? ?????????? ?????????? ???????????? ??????-???????? (? ?????????????? ??????????? ???? ?????????? ? ???? ??????) ??? ? JavaScript, ??? ? ? C#.

??????????. ??? ?????????? ???????????? ??????-???????? ????? ????? ???????????? ????????????, ???????????, ??????? ? ?. ?. ??? ????????? ? ???? ?????? ??? ??????????? ???????. ??? ????????? ?????????????? ?????????? ???????????? ? ???????? ??????-????????.

JavaScript

??????? ???????? HTML-???????? ??? ???????????? ??????-???????? (? ??????????? ???? ?????????? ? ???? ??????) ?? ????????? ????????.

<div id="extendedSplashScreen" class="extendedSplashScreen hidden">    <img id="extendedSplashImage" src="/images/splash.png"  style="position: absolute;" />    <progress id="extendedSplashProgress" style="color: white;" class="win-medium win-ring"></progress></div>
 

????? ???????? ????? CSS ??? ???????????? ??????-????????.

.extendedSplashScreen {    position: absolute;    text-align: center;    background-color: #000000;    height: 100%;    width: 100%;    top: 0px;    left: 0px;}.extendedSplashScreen.hidden {    display: none;}

?????????? ?????????????? ?????? ?? ????? ????????? ? ??????????? ????????? ??????? activated ??? ????????? ??????? ??????-????????. ?? ???? ??? ?????? ??????-???????? ????? ?????????????? ??? ??? ??????????? ??????? dismissed, ??? ? ??? ????????? ???????????? ??????-????????. ????????? ? ??????? ??????-???????? ????????? ??????????? ??????-???????? ? ??????????????? ??????? ????????? ?????.

app.onactivated = function (eventArgs) {    if (eventArgs.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) {        // Begin executing setup operations.        performSetupTasks();

        // Retrieve splash screen object.        var splash = eventArgs.detail.splashScreen;

        // Register an event handler to be executed when the regular splash screen has been dismissed.        splash.addEventListener("dismissed", onSplashScreenDismissed, false);

        // Display the extended splash screen.        displayExtendedSplash(splash);

        WinJS.UI.processAll();    }};

function displayExtendedSplash(splash) {    // Position the extended splash screen image in the same location as the system splash screen image.    var extendedSplashImage = document.getElementById("extendedSplashImage");        extendedSplashImage.style.top = splash.imageLocation.y + "px";    extendedSplashImage.style.left = splash.imageLocation.x + "px";    extendedSplashImage.style.height = splash.imageLocation.height + "px";    extendedSplashImage.style.width = splash.imageLocation.width + "px";

    // Position the extended splash screen's progress ring.    var extendedSplashProgress = document.getElementById("extendedSplashProgress");    extendedSplashProgress.style.marginTop = splash.imageLocation.y + splash.imageLocation.height + 32 + "px";

    // After the extended splash screen is set up,     // apply the CSS style that will make the extended splash screen visible.    var extendedSplashScreen = document.getElementById("extendedSplashScreen");    WinJS.Utilities.removeClass(extendedSplashScreen, "hidden");}

??????? ?????? ???????? ??????, ??????? ?????????? ?????????, ???? ???????????? ??????????? ?????-????????. ????? ?????????? ???????? ???????? ??????????? ?????-????????. ??????????? ?????????? ??????????????? ????????? ??????. ???? ?????? ???????? ?????? ??????????? ??-?? ????????? ??????? ???????? ??? ??-?? ??????, ?????????? ???????????? ?? ???????? ? ?????????? ????????? ????????.

function performSetupTasks() {    // Begin additional loading tasks here…    ...

    // Tear down the extended splash screen after all operations are complete.    removeExtendedSplash();}

function onSplashScreenDismissed() {    // The splash screen has been dismissed and the extended splash screen is now in view.    ...}

function removeExtendedSplash() {    var extendedSplashScreen = document.getElementById("extendedSplashScreen");    WinJS.Utilities.addClass(extendedSplashScreen, "hidden");}

C#

??? ? ? ?????? ? JavaScript, ??? ?????????? ???????? ???????? ??? ???????????? ??????-???????? ? ??????????? ???? ?????????? ? ???? ??????. ?? ???? ??? ?? ????????????? XAML.

<!-- This snippet represents the ExtendedSplash class --><Canvas Grid.Row="0">    <Image x:Name="extendedSplashImage" Source="images/splash.png" />    <ProgressRing x:Name="ProgressRing" Foreground="White" HorizontalAlignment="Center" IsActive="True"         MaxHeight="30" MinHeight="30" MaxWidth="30" MinWidth="30"></ProgressRing></Canvas>

?????????, ??? ?? ???????? ? ??????? ????? ???????? ?????? ?? ????? ?????????. ????? ?? ???????? ?????? ??????-???????? ?? ?????????? ??????? activated ? ?????????? ??????????? ?????-????????.

async protected override void OnLaunched(LaunchActivatedEventArgs args){    // Begin executing setup operations.    PerformSetupTasks();

    // Retrieve splash screen object.    SplashScreen splashScreen = args.SplashScreen;

    ExtendedSplash eSplash = new ExtendedSplash(splashScreen);

    // Register an event handler to be executed when the splash screen has been dismissed.    splashScreen.Dismissed += new TypedEventHandler<SplashScreen, object>(eSplash.onSplashScreenDismissed);    ...

    Window.Current.Content = eSplash;    Window.Current.Activate();}

public ExtendedSplash(SplashScreen splash){    InitializeComponent();

    // Position the extended splash screen image in the same location as the splash screen image.    this.extendedSplashImage.SetValue(Canvas.LeftProperty, splash.ImageLocation.X);    this.extendedSplashImage.SetValue(Canvas.TopProperty, splash.ImageLocation.Y);    this.extendedSplashImage.Height = splash.ImageLocation.Height;    this.extendedSplashImage.Width = splash.ImageLocation.Width;

    // Position the extended splash screen's progress ring.    this.ProgressRing.SetValue(Canvas.TopProperty, splash.ImageLocation.Y + splash.ImageLocation.Height + 32);    this.ProgressRing.SetValue(Canvas.LeftProperty, splash.ImageLocation.X +         (splash.ImageLocation.Width / 2) - 15);}

???? ???????????? ??????????? ?????-????????, ????????? ??????????? ?????? ????????, ? ????? ????????? ?? ??????? ????????.

internal void PerformSetupTasks(){    // Begin additional loading tasks here…    ...

    // Tear down the extended splash screen after all operations are complete.    RemoveExtendedSplash();}

internal void onSplashScreenDismissed(Windows.ApplicationModel.Activation.SplashScreen sender, object e){    // The splash screen has been dismissed and the extended splash screen is now in view.    ...}

void RemoveExtendedSplash(){    Window.Current.Content = new LandingPage();}

?????????? ?????? ??????????

????????? ? ????????? ?????????? ?????? ??????????. ?????????? ?????? ????? ?? ??????????? ???, ??? ????????? ??????????? ??????? ???????? ????? ????????? ?? ??????-????????. ?????? ?????? ??????????? “????????????” ??????-???????? ?????????? ??????????? ???????? ???????? ??????-???????? ?? ??? ???, ???? ?? ????? ????????? ??????????? ??????. ????????? ????? ???????? ?????????? ?? ???????, ?????? ???????? ??????? ????????? ?????? ????????, ? ???????? ??? ?????????? ??????? ??????????? ????????, ????? ??? ?????????? ?????????? ?????????? ????? ??? ????????????. ????? ????, ???? ??? ?? ??????? ?????????? ?????????? ????????? ?????? ? ?????????? ?? ?????? ?????, ?????? ????? ???? ???????. ????? ???????, ???? ?????? ?????????? ????????? ????????? ?????? ?? ???? ??? ???????????? ??????? ?????? ??????, ?? ?????? ??????????? ??????? ?????????? ??????? ????????? ?????? ???????????? ??? ???????????? ???????.

???? ???????? ?????? ??????????? ??????? ??? ?????????? “??????????” ?? Consumer Preview. ??? ???????? JPG-????? ? ???????? ?????, ??????????? ?????????? “??????????”, ??????? ????????? ???????????? ?? ????????? ??? ?????? ????? ????. ?????????? “??????????” ?????????? ???????? ??? ???????? ?????? ??????????? ????? ????????? ??????-????????. ????? ????????????? ???????? ??? ????????? ?????? ???????? ??????????, ??? ??? ?????????????? ???????? ??????. ????? ???????????? ???????? ? ??????????, ??????????? ????? ???????? ?????????? ??? ?????? ?????? ????? ???????? ? ??????????? ??????. ????????? ?????? ???????? ??? ???????? ???????????? ? ?????????? ????? ??? ???????????? ?? ??????.

???? ??????? ??????????? ?? ????????? ???????????:

  1. ???????????? ??????? ??????????? ? ??????? JPG (?????????? “??????????” ??????????? ? ???????? ??????????? JPG-?????? ?? ?????????).
  2. ???????????? ?????-????????.
  3. ????????? ????????????? ?? ????? ???????? ??????.
  4. ???????????? ?????????? ? ?????????? ???????.

???? ???????? JPG-???? ?? ??????? ?????, ???????????? ?????-???????? ??????????? JPG-??????. ????? ?????????? ??????????? ?????????, ????? ?????-???????? ????????? ?? ?????? ?? ?????????? ????????? JPG-????? ???????????. ????? ????????? ????????? JPG-????? ?????????? ????????? ???????? ? ???????????? ?????? ????? ? ??????? ??????????? JPG. 
??????? ??????????? ??????? ??????????.

????? ??????????? ??????? ??????????? ??????? ? JavaScript, ??????? ???????????? ???????? ?????????. ???????? ????????? ?????????? ???????? ?????????? ????????? ?? ?????????? ??????????? ????????. ? ????????? ?????? ????????? ??????????? ????? ???????? ????????? ??????. ????????? ??????????? API ????? ?????????? Windows ???????? ????????????, ???? ????? ?????? ???????????? ? ??? ???????, ????? ????? ???????????? ?????????? ????????????????? ?????????? ?????????? ????????? ????????? ???????????? ????????. ? C# ?????????? ????? ??????????? ???????? ? ??????? ???????? ?????? Window.Current.Activate. ???? ?????????????????? ??? ???????.

JavaScript

? ??????????? ?? ????, ??? ?????? ?????????? ???????????? ?????????, ? JavaScript ?????????? ??? ??????? ?????????? ???????? ?????????.

???? ??? ????????? ????????? ?????????? ?????????? WinJS (??????????? ?? ????????? ??? ???????? ???????? Visual Studio), ??????????? ????????? ???. ????? setPromise ??? ?????????? ??????? ????????? ??????????? ?????????? ????????? ?? ?????????? ????? ??????????? ??????? (WinJS.UI.processAll ? asyncOperation).

app.onactivated = function (eventArgs) {    if (eventArgs.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) {        eventArgs.setPromise(WinJS.UI.processAll().then(function() {            return asyncOperation().done(function () { });        }));    }};

???? ??????? ????????? ??????????? ??? ????????? ??????? activated, ????? ???????????? ????? ActivatedOperation.getDeferral. ???? ????????, ??? ?? ????? ????????? ?????????? ?????? deferral, ? ????? ?????????? ???? ??????????? ???????? ?????????? complete.

??????????. ????? complete ??????? ????????? ?????????? ?? ????, ??? ?? ??????????? ????? ????????. ???? ?? ????????? ????? complete, ?????????? ??????? ?? ??????????? ?? ?????? ????????? ? ?????? ?????????? ????? ???????? ??-?? ????????? ??????? ????????. ??? ???????????????? ?????? ??? ????????????? ??????? ???????. ????????? ??????????, ????? ?????????? ???????????? ??? ??????.

Windows.UI.WebUI.WebUIApplication.addEventListener("activated", onActivated, false);function onActivated(eventArgs) {    if (eventArgs.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) {        var deferral = eventArgs.activatedOperation.getDeferral();        asyncOperation().done(function () {            deferral.complete();        }, function (error) {            deferral.complete();        });    }}

C#

??? ?????????? ???????? ? C# ?????? ???????? ????? Window.Current.Activate ?? ?????????? ???????? ???????? ??????. ???????, ???, ??? ? ? ?????? ? JavaScript, ??????? ??????????? ???? ????? ???? ?? ???????? ????? ??? ?????????? ??????? ????????. ???? ?????????? ?? ???????? ???????? ????????? ????? ???? ? ??????? ????????????? ???????, ?????? ????? ???????? ??-?? ????????? ??????? ????????. ????? ????, ?????????? ???????? ???????????? ?????? ?? ?????????????? ?????????????????? ?????? ??????????, ??? ?? ?????????? ?????????????.

protected override async void OnLaunched(LaunchActivatedEventArgs args){    // Create a frame to act navigation context and navigate to the first page.    var rootFrame = new Frame();    rootFrame.Navigate(typeof(BlankPage));

    // Place the frame in the current Window and ensure that it is active.    Window.Current.Content = rootFrame;

    // Use “await” to execute an async operation prior to activating a window.    // Remember, avoid lengthy operations here.    await asyncOperation();

    Window.Current.Activate();}

??????????

? ???? ?????? ?? ??????????? ????????? ???????? ???????????? ??????????? ??????? ??????????. ?? ???????? ?????? ??????? ??????????????, ??????????? ??????????? ??????? ??? ? ???????? ????????????? ?????? ??????????. ??? ??????? ????? ????????? ? ?????? ?????????? ? ????? Metro. ? ?????????? ??? ???????? ?????????? ?? ????????? ??????? ?????? ???????? ??????? ?????????? ? ???????????? ????????? ????? ???????. ???? ?????? ?????????? — ??? ?????? ??????????? ?????????? ?? ???????????? ???????????? ???????????.

????? ????????? ?????? ?? ?????????, ???????-????????? ??? ????????? ????? ??????????, ??. ????????? ???????:

??????

???

??????? ????????

?????????? ??????-????????

????????????

??????? ??????, ? ??????? ??????????? ??? ???????, ??? ? ??????????? ?????-????????. ? ???? ??????? ????? ????????? ???????? ???????????? ?? ??????????.

?????? ??????-????????

??????

?????? SDK, ??????????????? ?????? ??????????? ??????? ?????????? ? JavaScript, C#, C++ ? VB.NET.

????? SplashScreen

?????????? ????????? ?? API

???????????? ?? API ??? ?????? ??????-????????.

?????????? ?? ????????? ?????????? — VB/C#/C++ ? XAML

??????? ???????????

??????? ?? ????????? ?????????? ? ????? Metro ? C#, C++ ??? VB.NET.

?????????? ?? ????????? ?????????? — JavaScript ? HTML

??????? ???????????

??????? ?? ????????? ?????????? ? ????? Metro ? JavaScript.

?????? ????????? ? ???????????? ??????????

??????

?????? SDK, ??????????????? ????????? ? ???????????? ?????????? ? ????? Metro ? JavaScript.

???????????? ???? Windows.ApplicationModel.Activation

?????????? ????????? ?? API

???????????? ?? API ??? ???????????? ???? ?????????.

??????? WebUIApplication.activated

?????????? ????????? ?? API

???????????? ?? API ??? ??????? activated.

????????? ???? ??????????

??????

??????, ?????????? ????????? ???? ?????????? ? ????? Metro.

– ??????? ???????? (Justin Cooperman), ???????????? ?????????, ??????? ?????? ?? ?????????????? ? ?????????????? Windows

Comments are closed.