﻿function onSourceDownloadProgressChanged(sender, eventArgs) {
    sender.findName("parentCanvas").Width = screen.width;
    sender.findName("parentCanvas").Height = screen.height;
    sender.findName("LayoutRoot").Width = screen.width;
    sender.findName("LayoutRoot").Height = screen.height;
    sender.findName("uxStatus").Text = "Loading: " + Math.round((eventArgs.progress * 1000)) / 10 + "%";
    sender.findName("uxStatus2").Text = "Loading: " + Math.round((eventArgs.progress * 1000)) / 10 + "%";

    //sender.findName("uxProgressBar").ScaleY = eventArgs.progress * 356;
}
