Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a RichEditBox with support for Inking Like OneNote?

I want to create a RichEditBox with support for Inking Like OneNote. It should have features from both, like Text Formating and Ink editing.

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

like image 688
Vijay Nirmal Avatar asked Oct 30 '22 09:10

Vijay Nirmal


1 Answers

It should have features from both, like Text Formating and Ink editing

RichEditBox have many relative APIs to execute the basic features as what you mentioned. For example, you can change the text formatting by ITextCharacterFormat. The official sample provide samples about changing the text bold, italic, color you can reference. You can bullet and numbering by setting the ITextParagraphFormat.ListType property for the ITextParagraphFormat. This thread provide sample for bullet and numbering for RichEditBox.

For inking, you may use the InkCanvas with InkToolbar. Inking can be edit, copy, delete and so on. Details please reference the SimpleInk official sample.

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

like image 144
Sunteen Wu Avatar answered Nov 14 '22 06:11

Sunteen Wu