question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Enhancement] MarkdownTextBlock

See original GitHub issue

In one o the recent releases to the UWP Toolkit, a MarkdownTextBlock control was introduced, and it looks pretty awesome. Would anyone else find this useful (thought - it could be used in the MetroDemo rework to display a user guide)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
thoemmicommented, Oct 8, 2017

There’s a nice markdown control available, Markdig.wpf.

I created a demo app using the MahApps’s Quick Start guide and added following lines to MainWindow.xaml:

<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <TextBox
        x:Name="source"
        Grid.Column="0"
        Margin="5"
        AcceptsReturn="True"
        FontFamily="Consolas" />
    <wpf:MarkdownViewer
        Grid.Column="1"
        Margin="5"
        Markdown="{Binding ElementName=source, Path=Text, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" />
</Grid>

Here’s the result: demo

1reaction
amkuchtacommented, Oct 10, 2017

@thoemmi congratulations, you’re my favorite person today (for whatever that is worth 😆)

Read more comments on GitHub >

github_iconTop Results From Across the Web

MarkdownTextBlock - Windows Community Toolkit
Property Type Description Header1FontSize double Gets or sets the font size for level 1 headers Header1Margin Thickness Gets or sets the margin for level 1...
Read more >
Windows Community Toolkit | XAML Brewer, by Diederik Krols
Another nice improvement is the better vertical alignment of the ... the Community Toolkit's MarkdownTextBlock as a decent alternative.
Read more >
A Look at the Windows Community Toolkit for UWP
One particularly interesting control is the MarkdownTextBlock. ... Rx.NET v6.0: Enhancing Compatibility, Trimming Support, and Many More ...
Read more >
UWP Community Toolkit changelog - Awesome .NET - LibHunt
#3437: MarkdownTextBlock control is now in an independent package. We are working to split our Controls package into more easily consumable chunks for...
Read more >
Documentation
The vast majority of the enhancements made rely on the existence of generic inline and block elements in Markdown. ... Markdown text block...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found