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
240
Track the State Change of StateButtonTool inside UltraToolbarsManager
posted

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

Parents
No Data
Reply
  • 240
    Verified Answer
    posted

    I got the answer.

     

     case "Grouping":
                        StateButtonTool sbt = (StateButtonTool)e.Tool;
                      
                        if (sbt.Checked == true)
                        {
                           // code here
                        }

     

    Thanks you.

Children