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
325
PopupMenuTool flickering while Adding StateButtons
posted

hey there,

we're replacing all Windowstoolbars with the Infragistics UltraToolbarsManager.

For a selection we use the PopupMenuTool and add dynamically the buttons we need.

 

foreach

 

 

(DataRow drRow in

dtTouren.Rows)
{
AddMenuItem(String.Format("{0}", drRow["****"].ToString().Trim()), drRow["****"],tssTour2,dmUltraToolbarsManager1);
}

Following:

 

 

dmUltraToolbarsManager1.Tools.Add(

new StateButtonTool(text+tag));
tss.Tools.AddTool(text+tag);
tss.Tools[text+tag].Tag = tag;
tss.Tools[text+tag].SharedProps.Caption = text;
if (tss.Tools.Count == 2)
{
tss.Tools[text+tag].InstanceProps.IsFirstInGroup =
true;
}

Everytime the program adds an item to the popupMenuTool, the control flickers. It shows me the popupMenuTool opened.

How can i prevent the flickering?

Best regards

David Mueller

Parents
No Data
Reply
  • 44743
    posted

    I don't see why the PopupMenuTool would be opening in this case. Try calling BeginUpdate() on the UltraToolbarsManager before adding the tools and EndUpdate() after.

Children
No Data