I am creating a small custom scientific editor using RichTextBoxes. User can insert a 'formula' UserControl which itself contains one or more RichTextBoxes, allowing insert more 'formula' controls - this replicates minimal functionality of MathType.
When I insert the UserControl, it shows up alright but the RichTextBoxes are disabled wi...
I have a very simple xaml file where I am passing the same Paragraph and Run elements to both a RichTextBox and a FlowDocumentScrollViewer. The both look radically different - which is not what I was expecting.
I understand that you can style either the FlowDocument or the containers so they look the same but I was expecting them both t...
I'm using a RichTextArea in a GWT app. I want to add a context menu to my RichTextArea:
public class MyRichTextArea extends RichTextArea implements HasContextMenuHandlers {
public HandlerRegistration addContextMenuHandler(ContextMenuHandler h) {
return addDomHandler(h, ContextMenuEvent.getType());
}
}
(...)
myRichText...
I am storing a number of HTML blocks inside a CMS for reasons of easier maintenance. They are represented by TEXTAREAs.
Does anybody know a JavaScript Widget of some sort that can do syntax highlighting for HTML within a Textarea or similar, while still staying a plain text editor (no WYSIWYG or advanced functions)?
...
I have a RichTextBox and I need to find the position of the vertical scroll bar.
Is there any way to do this without Pinvoke? If not, what is a way to do this WITH Pinvoke?
I need to return an integer value.
Thanks for the help!
...
In my application, I have a lot of RichTextBoxes that are created dynamically in run time. I realized that the application has a memory leak, which is caused by the RichTextBox controls. To prove that the memory leaks because of the control I wrote the following test method:
for (int i = 0; i < 3000; i++)
{
Control r...
Hi
I want to save content of a RichTextBox to varbinary (= byte array) in XamlPackage format.
I need technicial advise on how to it.
I actually need to know how to convert between FlowDocument to byte array.
Is it even recommended to store it as varbinary, or this is a bad idea?
Update
Code snippet:
///Load
byte[] document = GetD...
One of the controls in my application limits a user to be able to change only the font style (B, I, U) and colour of the text. I have created a custom control which inherits from the RichTextBox for this purpose. I am able to intercept CTRL-V, and set the font of the pasted text to SystemFonts.DefaultFont. The problem I am currently f...
on a windows form, i have RichTextBox, with some text, in several lines. and one button on a form.
i wolud like when i click on that button, to join all richtextbox of lines in one line, but not to loose text style (like font family, color, etc.)
i can not do it with Replace, like \r\n, and not with the Replace(Environment.NewLine, "")...
I have a RichTextBox in a WinForm with URL:s.
They can be clicked, but I want to detect if the user right clicked them.
...
I'm constructing a formatted FlowDocument from XML. The XML is well formed and consists mainly of 10,000 nodes each with a single node with a 6 character string value.
Parsing the XML to an XElement and constructing the FlowDocument in memory takes about 5 seconds. Assigning the FlowDocument to the Document property of a RichTextBox in ...
Hello all,
I am able to load an rtf document in a RichTextBox, but the links that the document contains to some websites are not working.
Anyone have any idea why? Some solution to make the links work?
Best regards,
Paulo Azevedo
...
I'm using a RichTextBox to display an RTF file, which includes a single hyperlink. The link text is not a URL (the target is a valid URL). The RTF was created with Word. Both Word and Wordpad properly recognize the links (Wordpad does not launch the links, but shows the appropriate hand cursor).
When I load the RTF into a RichTextBox th...
Hi,
I have tried TinyMCE and FC/CKEditor and they both don't really do the job...
I wanted to get a wordpress like style...
Thanks!
...
After a bit of digging it would appear that the WPF built in spell checker only supports English, Spanish, French, and German - which beggars belief somewhat. I can understand they can't really ship comprehensive spell checkers for every language with WPF, but I'd at least expect it to be able to use the Office ones if they are installed...
Hi there.
I have a .NET WinForms containing a few user controls. these controls usually contain either a RichTextBox or similar text controls (also 3rd party grid, XtraGrid suite, but those have the feature i want). I want to export the form the same way it looks to a PDF document.
I've seen several libraries and general PDF creation f...
I am trying to work out how to insert a tab character into a WPF RichTextBox when the AllowTab attribute is set to false.
Is there a shortcut key that allows this? I would rather not have to resort to adding a special button to the toolbar or telling users that they must copy and paste one in ...
...
I know I can keep a right column open in a RichTextBox by setting the RightMargin property, but is there any way I can insert text into this column? An example would be in Skype where the time is displayed next to the line of text entered. Example
My message of text 5:08PM
Another message of text 5:09PM
If I insert a long...
I can find a million examples of doing reg ex to apply syntax highlighting to a rich text box. but what i need it just a simple way to add in a word of a diffrent color.
What would the code be to just put the words "Hello World" into a textbox and have Hello be red and World be green?
This code doesnt work.
this.richTextBox1.Selectio...
hi.
I want to use a rich text editor like TinyMCE in my windows aplication. Is there any solution for this?
...