Hi, i have an ultratilepanel (17.2) and try to found a solution for autohide scrollbar.
I want see it only when the mouse is over.
Any solution?
tks a lot.
Hello Luca,
In order to only show the vertical scrollbar only when the mouse is over the UltraTilePanel control, I would recommend utilizing a DrawFilter along with the MouseEnterElement and MouseLeaveElement events of the control. In the MouseEnterElement and MouseLeaveElement events, you can check the e.Element property (where ‘e’ is the event arguments) for an UltraTilePanelControlUIElement and then call e.Element.DirtyChildElements(true) to force a redraw of the control. If you keep a bool property that tracks whether or not the mouse is over the UltraTilePanel control as well, you can check this in your draw filter.
I am attaching a sample project that demonstrates how to do this. I hope it helps you.
Please let me know if you have any other questions or concerns on this matter.
UltraTilePanelScrollBar.zip
HI, tks for answer, you use a 19.x version, can u do it the same example with 17.2? tks a lot
I am attaching an updated version of the sample to use the latest version of Infragistics for Windows Forms 2017.2. There are no changes to the code within the sample.
Please let me know if you have any other questions or concerns on this matter.6242.UltraTilePanelScrollBar.zip
wowo, works!!! tks a lot