por qué no puedo usar winforms en WPF [cerrado]

as above, i already added references to system.windows.forms and WindowsFormsintegration. what i want to do is use richTextBox1.Text
Look at prsc: enter image description here

preguntado el 09 de marzo de 12 a las 23:03

2 Respuestas

Añadiendo una referencia a System.Windows.Forms doesn't change the fact that you're using the RichTextBox from WPF, which doesn't have a Text property. The WPF RichTextBox alberga un FlowDocument, not RTF content like the WinForms RichTextBox. Read the MSDN documentation for information on how to work with a FlowDocument.

respondido 09 mar '12, 23:03

Why don't you use WPF's RichTextBox control?

enter image description here

respondido 09 mar '12, 23:03

He is using the WPF RichTextBox... and he's not finding the Text property on it, since it doesn't exist - Tomas Levesque

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.