View Single Post
Old 01-10-2006   #2 (permalink)
Drew Marsh


 
 

Re: Selectable non-edittable text?

RyanLeeSchneider wrote:

> What control should I use to contain selectaable, copyable but read
> only text?
>
> Basically I have a couple lines of databound text that I want the
> user to be able to select and copy, but not edit, e.g.:
>
> Username: Ryan
> Member Of: Developers
> I've tried <TextFlow> with <Section> and <TextBlock>, and can display
> it properly but can't find a way to make the text selectable.
>
> Do I have to use a read-only <TextEdit>? I'd like to use Rich tesxt
> if at all possible.


Did you try a TextBox with IsReadOnly="true"?

HTH,
Drew

___________________________________
Drew Marsh
Chief Software Architect
Mimeo.com, Inc. - http://www.mimeo.com
Weblog - http://blog.hackedbrain.com/


My System SpecsSystem Spec