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
35
Event handler for ContentPane getting opened when user Hovers the Mouse on the ContentPane tab
posted

I am looking for an Event handler for ContentPane getting opened when user Hovers the Mouse on the ContentPane tab. This is required to update the data in the content pane when its being opened.

  • 138253
    Offline posted

    Hello,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

  • 138253
    Offline posted

    Hello,

    Thank you for your post. I have been looking into it and I suggest you create a Style for the PaneTabItem and add an EventSetter for the MouseEnter event and handled it in code behind. You can do something like this:

    In XAML: 

    <Style TargetType="{x:Type igDock:PaneTabItem}">
        <EventSetter Event="MouseEnter" Handler="MyMouseEnter"/>      
    </Style>
    

     

    In Code behind: 

    void MyMouseEnter(object sender, MouseEventArgs e)
    {
        ContentPane cp = (sender as PaneTabItem).Pane;
    }
    

     

    This way you can have a reference to the ContentPane that is going to be shown. Please let me know if this helps you or you need further assistance on this matter.

    Looking forward for your reply.