i have a FlowDoc within a RTB which i create and manage via code (no xaml). i have multiple blocks within my document, some of which contain Table objects with multiple TableCell objects. I desperately require to have GotFocus and LostFocus events fire from my TableCell and Block objects, however for whatever reason i just cant seem to make it work.
as both objects are created dynamically, i've resorted to the following:
Dim currentRow As TableRow = New TableRow()
For i As Integer = 1 To numberOfCols
Dim cell As New TableCell(New Paragraph(New Run("")))
AddHandler cell.GotFocus, AddressOf ConvertToCurrency
...where ConvertToCurrency is my method i need called when GotFocus is fired. my RTB itself has its IsDocumentEnabled value set to true.
so what am i missing? any help would be greatly appreciated.