I am working on a Wpf CustomControl that acts similar to a standard Wpf TextBox, however I am implementing the features of the System.Windows.Media.TextFormatting namespace (ie TextSource, TextFormatter, etc.). After searching long and hard for any other application that implements the TextFormatter Api, I discovered AvalonEdit, which has enabled me to get the TextFormatter to Format lines for me, and display them on-screen.
I was wondering if you are able to give me any info on this topic, any info would be appreciated, but I am having trouble with performing hit-testing on the text that is created by the TextFormatter. I have analyzed AvalonEdit and see that you implemented your own logic for this, however the TextLine abstract class contains element's for performing CharacterHit's, and was wondering if you feel that the CharacterHit's are worth using for a control such as mine.
If you know of any good sources of information on this topic, I have been working on this control for a while now and am not getting anywhere now diue to lack of info... Any other samples you know of (I have gone through all of the Advanced Text samples from MSDN already however) or articles etc (or if you guys know from creating your application), any info such as this would be extremly helpful, and I thank you in advance for your trouble.
If you do not have any additional info, don't worry, I just thought I would check.
Thank you very much in advance for any assistance you can provide!