Hi,
Can i position the dropdown to appear starting from the drop down arrow and not from the starting of the button.
Thanks.
Hello Keerti,
Thank you for posting in our forum.
In order to align the popup window to the lower right edge of the dropdown button you may set RightAlignPopup of your UltraDropdownButton to true. You may use code like this:
this.ultraDropDownButton1.RightAlignPopup = DefaultableBoolean.True;
More about RightAlignPopup property you may find by following the next link http://help.infragistics.com/Doc/WinForms/current/CLR4.0/?page=Infragistics4.Win.Misc.v15.1~Infragistics.Win.Misc.UltraDropDownButton~RightAlignPopup.html
Please let me know if you need any additional information.
Thank you for using Infragistics Controls.
here is another screenshot.
something simialar to the windows shutdown button syle.
Thank you for your feedback.
To get full control over the popup window you may use DropDownManager’s ResetDropDownPositionAndSize static method. You need to call this method in Opened event handler of your popup control. More about this method you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2012.1/CLR2.0/html/Infragistics2.Win.v12.1~Infragistics.Win.DropDownManager~ResetDropDownPositionAndSize(Control,Rectangle,Rectangle,Boolean).html.
In the attached sample solution I have created an UltraDropDownButton with UltraPopupControlContainer as its PopupItem. By handling the Opened event of UltraPopupControlContainer I have changed the position and the size of the popup window.
One more point. By default the arrow of the drop down button is pointing downwards. I have added to my sample project implementation of IUIElementDrawFilter interface. By the help of this interface I have changed the arrow type.
Please check my sample and let me know if this is what you are looking for or if I am missing something.
Thanks Milko for your response and the sample project.
we had a change in usability and hence had to give up using the infragistics control and use a standard winforms button and draw a simple context menu ourselves.