Autor Beitrag
ebber
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 239
Erhaltene Danke: 1

Win XP, Win 7
C# (VS 2010), Delphi (2007), Expression 4
BeitragVerfasst: Do 08.05.08 19:19 
Hallo

ich kann die TextBox.Lines Eigenschaft in WPF nicht mehr finden. Weis jemand was damit passiert ist?

MfG
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Do 08.05.08 19:32 
Die Lines-Eigenschaft der TextBox von WinForms gibt es in WPF nicht mehr, stattdessen ist nun der gesamte Text in der Text-Eigenschaft. Mit einem einfachen textBox1.Text.Split(Environment.NewLine) solltest du deine Zeilen als string[] wieder bekommen. ;)
ebber Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 239
Erhaltene Danke: 1

Win XP, Win 7
C# (VS 2010), Delphi (2007), Expression 4
BeitragVerfasst: Do 08.05.08 20:11 
Danke.

So funktionierts bei mir:

ausblenden C#-Quelltext
1:
textbox.Text.Split(Environment.NewLine.ToCharArray())					


MfG