microsoft / xaml-standard

XAML Standard : a set of principles that drive XAML dialect alignment
Other
805 stars 50 forks source link

Add RichTextBlock #158

Open SuperJMN opened 7 years ago

birbilis commented 7 years ago

there is another item for RichTextBlock I think (or maybe it was separate one about editable RichTextBox?)

rodrigoelp commented 7 years ago

Is there a reference to the other item? I am looking for it but search does not bring it up.

birbilis commented 7 years ago

@rodrigoelp probably I was remembering the RichTextBox (that one is editable) issue: https://github.com/Microsoft/xaml-standard/issues/138

rodrigoelp commented 7 years ago

I would like a RichTextBlock that has support for rich text or Markdown. Getting an application translated properly would be so much easier if these formats would be supported directly by the standard.

For instance, in Cocoa you can achieve this by either getting the translator to provide an html (in which case you use the UIWebView) or getting an NSTextField to load your formatted text (providing a document formatter). Text and Run tags doesn't cut it and I shouldn't need to explain to my translators how to write XAML to get that to work.

birbilis commented 7 years ago

Could use markup extensions that bind to a formatted string (markdown, html, rtf, tex etc) and produces the run tags etc.

For the editable version (RichTextBox) a document object model is definitely needed, so should make use of WPF/Silverlight existing work there