Hello,
I have a problem with showing the images on the overflowbuttons in the ultraexplorerbar and I can't seem to find a solution.
I'm using this code to set them:
xpbMenu.UseLargeNavigationOverflowButtonImages = false; UltraExplorerBarGroup grp = new UltraExplorerBarGroup(row["MnuCd"].ToString()); grp.Text = row["MnuOmsNl"].ToString(); grp.Settings.AppearancesSmall.HeaderAppearance.Image = AITProject.Properties.Resources.cogIcon; grp.Settings.AppearancesSmall.NavigationPaneHeaderAppearance.Image = AITProject.Properties.Resources.cogIcon; grp.Settings.AppearancesSmall.NavigationOverflowButtonAppearance.Image = AITProject.Properties.Resources.cogIcon; grp.Settings.AppearancesSmall.NavigationOverflowButtonHotTrackAppearance.Image = AITProject.Properties.Resources.cogIcon; grp.Settings.AppearancesSmall.NavigationOverflowButtonSelectedAppearance.Image = AITProject.Properties.Resources.cogIcon; grp.Settings.AppearancesSmall.NavigationPaneCollapsedGroupAreaAppearance.Image = AITProject.Properties.Resources.cogIcon; grp.Settings.AppearancesSmall.NavigationPaneCollapsedGroupAreaHotTrackAppearance.Image = AITProject.Properties.Resources.cogIcon; xpbMenu.Groups.Add(grp);
But they get replaced with the default ones (I think they are the default ones). But not when the button is active or when you go over it (see screenshots)
Alle buttons should have the cog as image.
When I put it in, it shows (because it is active)
I set the second button active (it becomes active, so it shows)
Second button is active and i'm going with my mouse over the first button (cog is also showing)
Thanks in advance,
Robbe
Hello Robbe,
I attached an updated version of the sample to reference the appearances in the form's code behind. It was tested in 17.1 and 17.2 build 2006 and I wasn't able to reproduce any issues. You will find that the second overflow icon changes when you hover it, indicating that the images do change based on setting the respectful properties.
Let me know if you have any questions.
8420.WindowsFormsApplication1.zip
Thanks for answering Michael, but I can't use the designer because the data for the ultraexplorerbar comes out of the database and gets created at runtime. Do you have an example where it gets created that way? I'm using Version=17.2.20172.2006.
I wasn't able to reproduce the behavior where the images don't get assigned when setting the navigation overflow appearance settings. I attached a sample below demonstrating this working correctly. It's possible you may have to set the images as embedded resources or you are using an older version of our toolset.
I recommend adding another group in the designer and set the same Image properties.
You can apply the images in the designer by right-clicking in the control and clicking UltraExplorerBar Designer. You'll have the chance to reposition the group so it appears in the overflow area to see the image. My sample handles this as expected.
Please review the attachment and if the issue still persists please modify my sample and isolate the behavior so I can investigate this further. Let me know if you have any questions.
Sample.7z
This is still under investigation.
Thank you for contacting Infragistics. I am currently in the middle of writing a sample to isolate this behavior. If you are able to provide a sample of your own I'd greatly appreciate it. I will follow up on Monday regarding my progress.