How can I display a ModuleItem in C# WPF?

SlaceNerden
Community Member

When I send a request to get a ModuleItem and go to one of the 'url' s that it gave me, it shows everything from the sidebar to the global navigation. Alright. I guess I'll use the Show Page API then.

I get the 'body' part of my response and I put it into my browser. 

EDIT: It seems like I can't send pictures. I'll send the HTML instead.

<hr>\n<p><img src=\"https://canvas.instructure.com/courses/3416469/files/150538579/preview?verifier=wluJeq39BPm6X3kmyqBj5bmW7mc8iot7JwfDCSpx\" alt=\"samepagebanner.png\" width=\"100%\" data-api-endpoint=\"https://canvas.instructure.com/api/v1/courses/3416469/files/150538579\" data-api-returntype=\"File\"></p>\n<hr>\n<p><span style=\"font-size: 18pt;\"><strong>This is a sample page. </strong></span></p>\n<p><span style=\"font-size: 18pt;\"><span style=\"font-size: 14pt;\">Feel free to edit or add any additional content</span>. <span style=\"font-size: 14pt;\">Select \"<strong>Edit</strong>\" above to get started.</span></span></p>\n<p>&nbsp;</p>\n<p><em><span style=\"font-size: 14pt;\"><strong>Need help?</strong> Select&nbsp;the <strong>Show Me How</strong> menu for step-by-step tutorials.&nbsp;</span></em></p>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n<p><span style=\"font-size: 12pt;\"><em><img src=\"https://canvas.instructure.com/courses/3416469/files/150538574/preview?verifier=8apMLF5fEjRT8F2W8FE6rCcdXM83xAZjwuHnwxYT\" alt=\"homeicon.png\" width=\"45\" height=\"45\" data-api-endpoint=\"https://canvas.instructure.com/api/v1/courses/3416469/files/150538574\" data-api-returntype=\"File\">&nbsp;<span style=\"font-size: 14pt;\">Want to make this your homepage? Learn how through the <strong>Show Me How</strong> menu under <strong>Add Content to Your Course</strong>.&nbsp;</span></em></span></p>\n<p>&nbsp;</p>\n<hr>
 

If you look at this code in a browser, It does not look like the page at all.

How can I get the module content in a way that I can display it in my C# WPF app?

 
0 Likes