Beispiel #1
0
 public UIAwareHost(ContentControl displayControl, Type appType, string programFileName)
 {
     displayControl.SizeChanged += DisplayControl_SizeChanged;
     this.programFileName        = programFileName;
     this.appType = appType;
     Runtime      = new XSRuntime(displayControl);
 }
Beispiel #2
0
        // This is here purely as a debugging aid for hard coding content of the file in cases
        // where there is a problem
        //
        static async Task <string> ReadText(StorageFile file)
        {
            try
            {
                var str = await FileIO.ReadTextAsync(file);

                return(str);
            }
            catch (UnauthorizedAccessException)
            {
                // need wait
                return(XSRuntime.ProgramWithMessage("Failed to load file (access denied)"));
            }
        }
Beispiel #3
0
 internal JScriptXSRuntimeProjection(XSRuntime realHost)
 {
     this.realHost = realHost;
 }