PropertyChanged event -- does it do anything?

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by Jeff Key
Avatar
I need to know when certain properties like CanPaste, CanUndo, etc. change to reflect the state in my toolbar buttons and menus. I've tried subscribing to Document and UndoRedo PropertyChanged events and it looks like they are never fired. Should these be firing? If not, what can I do to be notified when they change?

Thanks

Comments (2)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jeff,

CanPaste is re-examined on every call to it because the clipboard and/or selection could have changed. It is a semi-expensive call since it has to look at the clipboard and if it is a custom object it calls our CustomDataObject method to allow you to determine whether it can be pasted or not. I'm not sure the best place for you to look this up since we do not set any internal values, it is returned dynamically. You could refresh it in the SelectionChanged event.

The CanUndo you should update in the TextChanged event.


Actipro Software Support

Posted 15 years ago by Jeff Key
Avatar
Thanks for the info.
The latest build of this product (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.