I have a multiline textbox in my wpf application:
<TextBox
x:Name="TextBoxText"
Height="auto"
Margin="{StaticResource ThicknessMarginTextBox}"
VerticalAlignment="Top"
MaxLines="5"
Text="{Binding TextInputMultiline, Path=Text, UpdateSourceTrigger=PropertyChanged}"
TextWrapping="Wrap" />
how can i get the character index or position of a linebreak?