I can't seem to find the Appearance of top half of a segmented PopupMenuTool, when that tool is displaying a dropdown menu:
The top-half always displays in light blue.
With UltraToolbarsManager1 .Office2007UICompatibility = False .UseAppStyling = False .UseFlatMode = DefaultableBoolean.True .UseOsThemes = DefaultableBoolean.False .Style = UltraWinToolbars.ToolbarStyle.Office2013 With .Ribbon.GroupSettings .Appearance.BackColor = Color.Red .Appearance.BackGradientStyle = GradientStyle.None .CollapsedAppearance.BackColor = Color.Orange .PressedAppearance.BackColor = Color.Yellow .PressedCollapsedAppearance.BackColor = Color.LightGreen .EditAppearance.BackColor = Color.Green .CaptionAppearance.BackColor = Color.LawnGreen .HotTrackAppearance.BackColor = Color.SeaGreen .HotTrackAppearance.BackColor2 = Color.Black .HotTrackAppearance.BackGradientStyle = GradientStyle.None .HotTrackCaptionAppearance.BackColor = Color.Orange .HotTrackCollapsedAppearance.BackColor = Color.Pink .HotTrackPressedAppearance.BackColor = Color.HotPink End With With .Tools("PopupMenuTool1") With .SharedProps .AppearancesLarge.PressedAppearance.BackColor = Color.Pink End With End With End With
Can you let me know how to set this please?
Thanks.
Hello,
Can you share your sample for me to try and test couple of properties. i believe you would need to set
popupMenuTool2.DropDownArrowStyle = Infragistics.Win.UltraWinToolbars.DropDownArrowStyle.SegmentedStateButton;
I tried changing the button to a SegmentedStateButton, but still have the same issue in that I can't find the relevant Appearance to change the top half of the button when it's displaying the menu. Sample attached:
WindowsApp2.zip
Thank you for sharing the sample. In your sample ,i tried DropDownArrowStyle to standard and its working fine.
Hi Divya,
Yes, I found the same. However, I need the segmented button, because my app uses the button feature separately from the drop-down. So how can I style the top half of the button when the menu is being displayed on the segmented button?
Thank you, the DrawFilter worked. :)
Hello Campbell,
I discussed the matter with the developer and with the segmented button that is the Highlight on the PopupMenuTool. There is no property off of the UltraToolbarsManager to change it.
However, it is possible to change it using AppStyling , you can create a empty isl file and off the
UltraToolbarsManager ComponentRole there is property called PopupToolHighlightColor which you can use to change the color. And use this isl into your application, make sure you enable the UseAppStyling (in your code its set to false)
Another option would be to create a DrawFilter that looks for the ButtonToolUIElement and sets the BackColor, when its a PopupToolBase and it's open.