Archives

Archives / 2017 / February
  • UWP Community Toolkit 1.3 Released – now with Markdown

    A new version of the UWP Community Toolkit has been released, this article on the Windows Developer website has the details on what’s new.

    One thing that caught my eye was the MarkdownTextBlock XAML Control that does exactly what the name implies: You set the Text-property with some Markdown text and it shows the rendered Markdown. You can change the styling of the output (font size, color, etc.) to match your application or a specific desired document style. And the LinkClicked event tells you when a link has been clicked.

    If you want to see it (and all the other toolkit features) in action, download the UWP Community Toolkit Sample App in the Windows Store.

    image

    How good is it?

    If you’ve used Markdown in more than one application or website before, you’ll know that there are smaller and larger differences here and there (the website for CommonMark has more on that).

    Playing around with the control to learn more, I found the following:

    While this list makes it sound like there are a lot of things that aren’t working (yet) or are missing, it is important to consider use cases for the control.

    • Do you plan to display arbitrary Markdown like Readme.md files from GitHub?
    • Or do your want a control to display explanation texts on a form (where you write all the markdown)?

    If the latter is the case, the control most likely will do its job already in version 1.3, with the tables and images coming in version 1.4 being a welcome addition, of course.