0

i have a C# user control named "Body_US" contains some elements such as label, images

as shown here .

I used the user control many times in main_window.

The problem is just i wanted to add an event on the image inside the user control.

For example when clicking on the image the opacity decreases .

How can i access the image inside the user control and make the event ?

  • Have you not got access to the User Control's code? If you do then access it through an event on an image element, otherwise you need to contact whoever created that user control to expose that element. Otherwise a behaviour would fit in nicely here [Behaviours](https://www.wpftutorial.net/Behaviors.html) – XAMlMAX May 28 '22 at 23:45
  • i have an access to the user control but the event i want to make is related to the code not stand alone event . – Gouda Ibrahim May 29 '22 at 08:51

0 Answers0