I'd like to show the Azure DevOps Wiki I created for my project within a WPF View with a Browser control. I used the following url:
https://dev.azure.com/xxx/xxx/_wiki/wikis/KIS.wiki?wikiVersion=GBwikiMaster&pagePath=%2FNew%20Features&pageId=1
Is it possible to show only the Wiki, without the DevOps main menu on the left side (Overview, Summary, Dashboards, Wiki, Repos, Pipelines, etc.)?
Is it possible to show only the Wiki, without the DevOps main menu on the left side (Overview, Summary, Dashboards, Wiki, Repos, Pipelines, etc.)
As you can see from this link, this is the link which represent the whole page contained the left panel and right content displayed. If you want to use this link as the part of your WPF view, it may not be shown only wiki.
But there has an work around, since WPF support Markdown language, you can use the below api to get the its markdown script:
https://dev.azure.com/{org name}/{project name}/_apis/wiki/wikis/{wiki name}/pages/%2F10
And then, use these to used into your WPF script.
Update:
To use this API, you need to pass the credential to the script first. To supply the credential, you can link a .cs
file which written with C#.
In this .cs
file, use the follow C# script to get connect with your org:
var url = new Uri("https://dev.azure.com//{org}");
VssCredentials cre = new VssCredentials(new Microsoft.VisualStudio.Services.Common.VssBasicCredential(string.Empty, "{PAT token}"));
var connection = new VssConnection(url, cre);
var workitemClient = connection.GetClient<xxxxHttpClient>();