开发者

Receiving EditingCommands on derived InlineUIContainer

开发者 https://www.devze.com 2023-01-10 07:51 出处:网络
I have a class that derives from InlineUIContainer.I want to take an action when an editing command (like ToggleBold) is performed on a FlowDocument selection that includes an instance of this class.I

I have a class that derives from InlineUIContainer. I want to take an action when an editing command (like ToggleBold) is performed on a FlowDocument selection that includes an instance of this class. I've tried registering for this command but it isn't raised. I've tried overriding OnPropertyChanded开发者_如何学C, but it is only called on explicit changes, not when my InlineUIContainer is part of a selection acted upon. Any ideas about how I might accomplish this?

0

精彩评论

暂无评论...
验证码 换一张
取 消