private void LoadHTML() { // Create the API key info section. string keyInfoPath = Path.Combine(NSBundle.MainBundle.BundlePath, "ApiKeyInfo.md"); string keyInfoContent = File.ReadAllText(keyInfoPath); string keyInfoHTML = HTMLHelpers.MarkdownToHTML(keyInfoContent, TraitCollection); _infoText.LoadHtmlString(keyInfoHTML, new NSUrl(_contentDirectoryPath, true)); }
private void LoadHTML() { // Create the about page. var runtimeTypeInfo = typeof(ArcGISRuntimeEnvironment).GetTypeInfo(); var rtVersionString = FileVersionInfo.GetVersionInfo(runtimeTypeInfo.Assembly.Location).FileVersion; string aboutPath = Path.Combine(NSBundle.MainBundle.BundlePath, "about.md"); string aboutContent = File.ReadAllText(aboutPath) + rtVersionString; string aboutHTML = HTMLHelpers.MarkdownToHTML(aboutContent, TraitCollection); _aboutView.LoadHtmlString(aboutHTML, new NSUrl(_contentDirectoryPath, true)); // Create the licenses page. string licensePath = Path.Combine(NSBundle.MainBundle.BundlePath, "licenses.md"); string licenseContent = File.ReadAllText(licensePath); string licenseHTML = HTMLHelpers.MarkdownToHTML(licenseContent, TraitCollection); _licensesView.LoadHtmlString(licenseHTML, new NSUrl(_contentDirectoryPath, true)); }