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…
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…
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…
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…
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)…
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…
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…
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…
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…
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,…
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…
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…
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…
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…
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.…