Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
470
Event for ToolAdded
posted

I am looking for an event on the UltraToolbarsManager Tools (ToolsCollection) that gives information about a new tool that is added to this collection.

In my application I want to store some information from the tool that is added in a cache. But unfortunatly the ToolsCollection or the UltraToolbarsManager doesn't have an acceptable event that give some information about the tool.

Furthermore I also need an event for ToolRemoved.

I hope someone can help me,
Michael

Parents
No Data
Reply
  • 44743
    posted

    The only event that will be fired when a tool is added or removed is the PropertyChanged event. The PropId on the ChangeInfo of the event args will be PropertyIds.Tools. When you receive this event with this PorpId, you can store the current tools in the list and the next time it is fired, you can compare the old tools with the tools currently in the list to see what was added or removed.

Children