How to change text of specific line in multiline textbox in WPF? #3026
-
Hi guys,
But this piece of cod, not working in WPF textbox.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@VahidEra This question does not seem related to MaterialDesignInXamlToolkit in any way, but a general WPF question? I think there are probably other more appropriate forums for such a question. With that said, I think what you are asking is somewhat of a special case which is difficult to provide a generic solution for. A
For the first scenario, it could be straight forward by simply pulling out the |
Beta Was this translation helpful? Give feedback.
@VahidEra This question does not seem related to MaterialDesignInXamlToolkit in any way, but a general WPF question? I think there are probably other more appropriate forums for such a question.
With that said, I think what you are asking is somewhat of a special case which is difficult to provide a generic solution for. A
TextBox
can be "multiline" in various ways:AcceptsReturn=True
(which is probably your scenario) where each line is separated by aEnvironment.NewLine
string.TextWrapping
property to one of the "wrapping" options.For the first scenario, it could be straight forward by simply pulling out the
Tex…