public UIAwareHost(ContentControl displayControl, Type appType, string programFileName) { displayControl.SizeChanged += DisplayControl_SizeChanged; this.programFileName = programFileName; this.appType = appType; Runtime = new XSRuntime(displayControl); }
// 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)")); } }
internal JScriptXSRuntimeProjection(XSRuntime realHost) { this.realHost = realHost; }