Retrieving Editing Commands on a Derived InlineUIContainer

I have a class that comes from InlineUIContainer. I want to take action when an editing command (e.g. ToggleBold) is executed on a FlowDocument element that includes an instance of this class. I tried to register for this team, but it is not raised. I tried to override OnPropertyChanded, but it was caused only by explicit changes, and not when my InlineUIContainer is part of the selected action. Any ideas on how I can do this?

+3
source share

Source: https://habr.com/ru/post/1757956/


All Articles