Questions tagged [richeditbox]

[WinRT] RichEditBox control

https://learn.microsoft.com/en-us/uwp/api/Windows.UI.Xaml.Controls.RichEditBox

79 questions
6
votes
0 answers

RichEditBox - "Delayed" resize behavior on window resize - Doesn't "attach" to the top or bottom of Grid cell

I have searched far and wide for an answer on this and have come up short. I am using Universal Windows 10 (UWP) and C# in Visual Studio 2015 to build a basic text editor to mirror the functionality of Notepad.exe as practice and I'm running into an…
4
votes
1 answer

Get ITextDocument for a RichTextBox in C#

This article... http://www.codeproject.com/Articles/4528/Use-IRichEditOle-from-C ... shows how to get IRichEditOle COM interface in C#. So far so good. I'm stuck writing the code to get the ITextDocument interface in C#. (btw, I need it to access…
user1908746
3
votes
1 answer

UWP richeditbox print multiple pages

I haven't been able to do multipage printing with Richeditbox. I have Richeditbox in Xaml named Editor. I use custom GetText() function to get all content inside of Editor. I have been able to do printing with single page but don't have idea how i…
Nasse
  • 55
  • 4
3
votes
1 answer

How can I databind to the plain-text value of a RichEditBox in UWP?

With a normal TextBox in UWP, you can databind to the Text property and easily get or set the value from a ViewModel. The RichEditBox doesn't have a data-bindable Text property though; instead you have to use the ITextDocument interface exposed by…
Peter Torr - MSFT
  • 11,824
  • 3
  • 18
  • 51
3
votes
1 answer

RichEditBox performance slow when dealing with larger text files (loading + scrolling)

I'm developing a C#/Xaml UWP text editing app that uses the RichEditBox control for editing text files from. However, I've noticed when I load larger files (~1mb and above, perhaps even less) that the control struggles in a couple of key areas: 1)…
Barrrdi
  • 902
  • 13
  • 33
3
votes
1 answer

Display line numbers in RichEditBox UWP

I would like to know if it is possible to show the line numbers (in a separate column) of a RichEditBox in UWP C#, or if there are other ways to get it. I'm looking for a solution to this problem... And it seems odd to me that there is no…
3
votes
1 answer

How can I move the cursor to the end of the text in RichEditBox?

I'm building a Windows Phone 8.1/Windows 8.1 app (WinRT) and I'm using a RichEditBox control. Every time I add text to it, the cursor goes to the beginning of the text and I can't find a way to move it to the end of the text. I've build two methods…
2
votes
1 answer

UWP - How to override the default Segoe UI font for RichEditBox

We have a UWP app with a RichEditBox that receives content from an RTF that looks like this: {\rtf1\ansi\ansicpg1252\cocoartf2512 \cocoatextscaling1\cocoaplatform1{\fonttbl\f0\fnil\fcharset0…
Cristiano Ghersi
  • 1,944
  • 1
  • 20
  • 46
2
votes
1 answer

How to display resizing adorner in an image inserted in a RichEditBox?

I'm trying to display resizing adorners to an image inserted in a RichEditBox in a UWP application. So far I can insert an image using the following code: private async void InsertImage() { var picker = new FileOpenPicker…
Xam
  • 263
  • 2
  • 7
  • 19
2
votes
1 answer

UWP: Wrong computation of height for RichEditBox

I need to compute the exact height of a RichEditBox, depending on its content. For this sake, I use the following method, which proves quite ok in any case, BUT when the text is one line! public static double GetElemHeight(FrameworkElement elem,…
Cristiano Ghersi
  • 1,944
  • 1
  • 20
  • 46
2
votes
1 answer

UWP how to get text from RichEditBox to RichTextBlock

If i have RichEditBox what contains some text how could i get all of that text and move it to RichTextBlock? Example text below: Closest what i have got looks like following I have used Microsoft own example in this project. I would like also keep…
2
votes
2 answers

RichEditBox looses color formatting when disable then enable

I am using a RichEditBox in a UWP application, and I need to enable and disable it in the software to perform some tasks. The issue I am running into is that when I disable, then re-enable it, any color formatting gets lost. I have created a simple…
ClaudiaWey
  • 167
  • 9
2
votes
1 answer

Richeditbox linespacing change not happening

I am developing a UWP app in which I use a RichEditBox control. I am trying to change the Linespacing(space between two lines) in my code. I have tried all the LineSpacingRule , but it is not reflecting in my UI. Here is my code RichEditBox…
Noorul
  • 873
  • 2
  • 9
  • 26
2
votes
1 answer

RichEditBox How to know Which line the cursor is in

How can i know If user click Enter in keyboard in RichEditBox? this code does not work private void Editor_KeyDown(object sender, KeyRoutedEventArgs e) { var dia = new MessageDialog(e.Key + ""); dia.ShowAsync(); } also This code…
2
votes
1 answer

Adding MenuFlyout to a RichEditBox UWP

Is it possible to add a menu flyout to a RichEditBox in UWP in addition to already available flyout items. But i see that there is no flyout property in richeditbox. So is it possible to add one? If Yes please provide the steps to add a menuFlyout.…
Razor
  • 669
  • 1
  • 10
  • 28
1
2 3 4 5 6