How to create RichEditBox with Inking Like OneNote support?

I want to create a RichEditBox with Inking Like OneNote support. It should have functions from both, such as Text Formating and Ink editing.

Note. I requested UWPCommunityToolkit to create a new control for this. If you would like to have this, please upvote it in UserVoice

+5
source share
1 answer

It should have functions from both, such as Text Formating and Ink editing.

RichEditBox have many relative APIs for performing basic functions, as you mentioned. For example, you can change the text formatting of ITextCharacterFormat . The official sample provides samples about changing text in bold, italics, color that you can reference. You can bullet and number by setting the ITextParagraphFormat.ListType property for ITextParagraphFormat . This thread provides a sample for bullet and numbering for RichEditBox .

For coloring you can use InkCanvas with InkToolbar . Ink can be edited, copied, deleted, etc. See the official SimpleInk sample for more details .

So, before a powerful, combined control appears, try the above controls and their APIs to meet your requirements.

+2
source

Source: https://habr.com/ru/post/1266495/


All Articles