0

How to write selection changed event for FlowDocumentScrollViewer in c#?

When the user select or deselect text in FlowDocumentScrollViewer, I do want to fire some event. My goal is to display in an statusbar the selection length.

How can I do that?

Please help. Thank You.

codeDom
  • 1,623
  • 18
  • 54
  • [TextSelection.Changed](https://msdn.microsoft.com/en-us/library/system.windows.documents.textselection(v=vs.110).aspx) event on [FlowDocumentScrollViewer.Selection property](https://msdn.microsoft.com/en-us/library/system.windows.controls.flowdocumentscrollviewer.selection(v=vs.110).aspx) – icebat Jul 08 '16 at 15:43
  • 1
    This may be a good start. But it's still not enough, because before the user has selected - the selection is nothing. – codeDom Jul 09 '16 at 20:34

0 Answers0