Skip to content

Proposal: Unify document formatting between RichEditBox and RichTextBlock #706

@cghersi

Description

@cghersi

Summary

Currently the way in which you format the text in RichEditBox and RichTextBlock is pretty different. A new (set of) API that enables a common way to set formatting properties for those two (quite connected) elements would ease maintenance of UWP projects as well as speed up development and reduce bugs due to lack of sync in the two scenarios.

Rationale

Often RichEditBox and RichTextBlock are used together to provide a Read-Only / Edit Mode for text-centric control.
Depending on the Modality, the developer has to apply a coherent set of formatting options to those two controls.
The most immediate way a developer could think of, in such a rich and powerful environment, is to set the properties of an ITextDocument.

As part of these unifying effort, a basic type supporting strings with specific format (similar to the iOS version of NSAttributedString) would be quite handy: it should be available in the .NET Standard specification, and few API to set / append such AttributedStrings to an ITextDocument would enormously ease the effort for the UWP App developers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions