Click here to Skip to main content
15,893,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

I'm trying to implement my own "textbox" like control in C#, WPF.

I want to implement the following features:

1. display the edited text from top to bottom.

Example:

textbox.Text = "This is an example how the text should be displayed.";

would show:

T ahes sd 
iamo hbp.
snpwtoel
  l eu a
ieetxldy
sx htdie


2. has to be able to display colored text. No pictures, no different fonts, no bold, no italics. It should show the columns with different backgrounds or draw dotted lines between them.

3. Has to show custom text on the margins (top and bottom too). Like line numbers and column numbers.

4. Should have the standard text editor features: copy/paste/undo


Can anybody help me with some advice? Where do should I start from? TextBoxBase? Control? Any tutorials? Any books?

Thank you!
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900