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
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
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.