1

I have a WPF application and it is using dynamic WPF controls. How do I add event like button or image OnResize?

Thanks

1
  • what do you mean by adding events?. Do you want something like this button.Click += button_Clicked Commented Mar 28, 2017 at 10:17

1 Answer 1

4

You could hook up an event handler to an event of the Button or Image using the += syntax:

 Image image = new Image();
 image.SizeChanged += (s, e) => { /* handle event */ };
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.