1
Answer

What is WPF's Equivalent

Photo of Ryan Turney

Ryan Turney

16y
4.5k
1

Hello everyone, what is WPF's equivalent code from the below Windows Forms code. It is type-casting the first control on the tabpage into a RichTextBox.

RichTextBox rtb = (RichTextBox)_tabs.SelectedTab.Controls[0];

Thank you! P.S. New lines seem to be broken on these forums... Everything is mashed together and hard to read, but not by choice.

Answers (1)