I want to implement mouse over event on a image in WPF. But it seems to be there is no event for that in WPF. How can I implement that. I tried with a trigger . But only the property is available.

                             <Image.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">


                                </Trigger>
                            </Image.Triggers>

But the problem is I want to call a method from c# code within the mouseover event. How can I achieve this.
Really apprieciate your help.
Thankx.

Recommended Answers

All 2 Replies

There are events. Now first thing you will do is download blend its less than 100mb in size. If you are already using it then check for lightning icon in properties window. There u can see all the events. By double clicking it you can add event in your cs file and write your code. But all this reply is based on assumpions. So if it dont help reply with more details. Gud luck.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.