Hello,
I am thinking of a functionality to implement in ultrawind. I want to add a tool tip for each colum header to provide a brief description about each column using the "Key" of columns.could any one tell me how i can do it.
Thanks.
Boris,
I am afraid i can not share the app. But, i would be happy to create a demo of the part where do you want to have a look.
Btw, the above snippet is from the project you attached.
and i used the same in my project.
In the app you created, when the mouse is over the header, the e.Element is shown as HeaderUIElement and it enters the immediate IF loop. but it doesn't happen so for me.
Thanks
It is hard to tell from the above code snippet, so I will be happy to take a look at a project of your own where you want this code to take action.
I am facing an issue while trying to implement your code in my application.
in the below event,
private
{
if (GetHeader(e.Element) is HeaderUIElement)
{header = (
HeaderUIElement)e.Element.GetAncestor(typeof(HeaderUIElement));
ultraToolTipManager1.HideToolTip();
timer.Stop();
timer.Start();}
{ ultraToolTipManager1.HideToolTip(); }
Even if my mouse is over, I am not getting the UIElement as HeaderUIElement rather it is just UIElement and so i am not able to enter the IF - loop.
I have designed my grid layout by "Manually define the schema" option in the grid designer and added column names manually.
Kindly advise. Thanks.
Thanks, i will check out and get back to you. have a good day!
Thank you, no worries.
I have taken some time to research this and came to the conclusion that 'MouseHover' event might not suit your needs because it fires only one time if mouse remains stationary in the control. And to fire the event for a second time you would have to leave the bounds of the control with the mouse and then enter again.
So if your requirements are to show the tooltip not immediately but after a one second for example you could use a 'Timer'. I slightly modified my previous sample and attached it to this post for you, please review it and see if it meets your requirements. Feel free to let me know if this behavior is not the required by you.