i am working in wpf,i have a richtextbox with some contents.if the contents are exceeded to richtextbox i want to hide bottom border.if the content within the richtextbox i want to show the bottom border.Now i am using the below code to bring the exceeded content to view in richtextbox.
FrameworkContentElement fce = (startPos.Parent as FrameworkContentElement);
if (fce != null)
{
fce.BringIntoView();
}
But i want to display the bottom border,once the last word shown in that richtextbox.How to achieve this?
Note: I already known how to show bottom border dynamically.but i want to know last word are displayed within the richtextbox or not?
Regards Arjun