adding event handlers on dynamically created WPF controls -


i have wpf application , using dynamic wpf controls. how add event button or image onresize?

thanks

you hook event handler event of button or image using += syntax:

 image image = new image();  image.sizechanged += (s, e) => { /* handle event */ }; 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -