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
2275
Mouseover an image
posted

I need to know when a user mouses over the image column in a row so that I can present a larger popup with a bigger image and more details.  

What would my approach be to accomplish this?

Thank you,

Mike

Parents
No Data
Reply
  • 34510
    Offline posted

    Hi Mike,

    The approach I would use is through a style event setter for the ComboCellControl.  You would create a style that targets ComboCellControl and add an EventSetter to handle the MouseEnter event.  Then inside the event, you can check the Content of the ComboCellControl for whether its an Image or not.  If its an Image then you can perform your logic for displaying a larger popup.  The code would look something like the following. 

    <ig:XamMultiColumnComboEditor>
        <ig:XamMultiColumnComboEditor.Resources>
            <Style TargetType="{x:Type ig:ComboCellControl}">
                <EventSetter Event="MouseEnter" Handler="OnMouseEnterHandler"/>
            </Style>
        </ig:XamMultiColumnComboEditor.Resources>
    </ig:XamMultiColumnComboEditor>
     
    void OnMouseEnterHandler(object sender, MouseEventArgs e)
    {
        if ((sender as ComboCellControl).Content is Image)
        {
            // popup logic here.
        }
    }
Children