Please set showPropertiesPane property to false in component wrapper Yes, document editor provides option to hide the properties pane. “how to hide the right-side toolbar on creation of the document editor component.” You can change the format to TXT and read the text content from text file. In the above documentation example, sample will be saved as RTF document. Please refer the below documentation for saving the document content in server side You can also save the document as txt file in server-side and read the text file content to get the document text. Please refer the below sample code snippetsĬ()Ĭ To extract the whole document text in editor, you can either select the whole document by selectAll API from selection module and with text property from selection, you can get the selected text. Unfortunately, it does not allow row reordering (only sorting), so I can't use it either.ĭid I miss something? If not, I wonder which one would be the best to build upon. ItemsRepeaterĪ very basic control that does not provide virtualization on its own: "ItemsRepeater supports virtualization when attached to a host that supports virtualization." DataGridĪ rather heavy control from WCT that seems to be the only one to dynamically resize cells depending on their content. However, I found a solution from 2013 that is based on pre-calculating the content size for invisible elements. This is the only list/grid control that officially declares the support of variable-sized items, but at the same time, it does not support virtualization. ItemsStackPanelĪ virtualization-supporting version of StackPanel, but, as far as I understand, panels are supposed to be used for simple layouting of child items and not for presenting long lists based on a data source. Also, its dragging uses the whole item area while I need to make it available only with a :: handle on the side. It seems to be the go-to control for the lists with drag'n'drop, but it can't resize the items dynamically. I have reviewed the following controls in WinUI 2.x and Windows Community Toolkit, but it looks like each of them lacks one or more of the required capabilities. Automatically adjusts row heights based on their content growing or shrinking in height (due to the user's input or because the app's window resized horizontally and wrapped some content).įeatures I do not need: headers, columns, sorting, filtering.Allows to reorder rows by dragging and dropping them (single or multiple)."virtualization" in the XAML terminology). Recycles the row views that are not visible (i.e.So I've been looking for some list/stack control that: These rows can be rearranged with a :: handle on the side: Instead of using a "single-field" editor (like MS Word has), these apps show a vertical stack of content rows (so-called "blocks") that can contain text, media, link previews, LaTeX, etc. I am trying to implement a document editor similar to Notion or Craft but in a WinUI/UWP application.
0 Comments
Leave a Reply. |