How to get the current state of a StateButtonTool of UltraToolbarsManager inside the tool Click event
Here is my code.
private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e) { switch (e.Tool.Key) {
case "Grouping":
{
// Here I need to write the code and it has to work only if the StateButton is on active state
}
Help me on this.
Thanks in advance.
Kishor Kodakkatil
Hello Kishor,
Thanks for sharing this with us.
Please do not hesitate to contact us if you need any additional assistance.
I got the answer.
case "Grouping": StateButtonTool sbt = (StateButtonTool)e.Tool; if (sbt.Checked == true) { // code here }
Thanks you.