Hello,
I need to change the litle arrow in Popup-Controls in a Ribbon. I tried to use a creation filter but with no luck.
I can change the size of the drop down button, but not the image used for the arrow, see the image
This is my code so far:
// Increase DropDown buttonPopupToolDropDownButtonUIElement dropDownBtn = parent.ChildElements[1] as PopupToolDropDownButtonUIElement;if(dropDownBtn != null) { // Increase size of DropDown-Button dropDownBtn.Rect = new Rectangle(dropDownBtn.Rect.X - 10, dropDownBtn.Rect.Y, dropDownBtn.Rect.Width + 10, dropDownBtn.Rect.Height); // Increase Arrow element if(dropDownBtn.HasChildElements) { dropDownBtn.ChildElements[0].Rect = new Rectangle(dropDownBtn.ChildElements[0].Rect.X - 5, dropDownBtn.ChildElements[0].Rect.Y - 5, dropDownBtn.ChildElements[0].Rect.Width + 10, dropDownBtn.ChildElements[0].Rect.Height + 10); // Set new image --> Doesn't work --> Exception !! //(dropDownBtn.ChildElements[0] as ArrowUIElement).Image = ......; } // Decrease text label size parent.ChildElements[0].Rect = new Rectangle(parent.ChildElements[0].Rect.X, parent.ChildElements[0].Rect.Y, parent.ChildElements[0].Rect.Width - 10, parent.ChildElements[0].Rect.Height);}
Is this possible? Any help?
Thanks!
Regards
Michael
Hello ,
What I could suggest you in this case is to use DrawFitlter in order to manually draw the arrow element with the needed size. I’ve implemented this suggestion in the attached sample, please review it and let me know if it works for you.
Please let me know if you have any further questions.
Hello Hristo,
Thanks for your reply, but I'm not designing for a touch device.
I just want to have the arrow a bit more "visible" and "prominent".
So, is this possible?
Regards,
I believe that you would like to enlarge the arrow because you are designing your application for a touch support. So in this case I would recommend you to set ToucheEnabaled property of UltraToolbarsManager to True. This will make the whole interface user friendly for a touch. More information about this property you will find on the following link:
http://help.infragistics.com/Help/Doc/WinForms/2014.1/CLR4.0/html/Infragistics4.Win.UltraWinToolbars.v14.1~Infragistics.Win.UltraWinToolbars.UltraToolbarsManager~TouchEnabled.html
So please try this suggestion and let me know if it work for you.
I am waiting for your feedback.