Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
620
Ultratilepanel autohide scrollbar
posted

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.

Parents
  • 34830
    Offline posted

    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

Reply Children