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
Events on Toolbar Tools
posted

I have a PopupMenuTool with a StateButtonTool and a TextBoxTool. Both Tools are set with data when I click anywhere on the grid:

DataObject data = ...

((TextBoxTool)bmMain.Tools["ParameterSet.Name"]).Text                   = data.Name;
((StateButtonTool)bmMain.Tools["ParameterSet.DefaultSet"]).Checked = data.IsDefaultSet;

// Show the ContextMenu
bmMain.ShowPopup("Menu.ParameterSet", gridMain, mousePoint);           

How can I receive the change of the "Text"-Value in the TextBoxTool and the change of the "Checked"-Value on the StateButtonTool, when the user interact with my menu?

data.Name = ...
data.IsDefaultSet = ...

Michael

Parents
  • 2334
    posted
    You can handle the ToolValueChanged event either at the ToolBarManager level (which will fire for every tool) or at the the individual tool level (you will have to wire manually in code behind).
Reply Children