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

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

java - How to handle special characters while unmarshalling xml in JAXB -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -