WPF How to add and perform events on those controls generated during Runtime

Posted by 103318677739703278524 on Stack Overflow See other posts from Stack Overflow or by 103318677739703278524
Published on 2010-06-16T23:29:34Z Indexed on 2010/06/16 23:32 UTC
Read the original article Hit count: 196

Filed under:
|
|

For example, I have an empty tabControl in my Windows during the compile time, and I have an undetermined amount of images need to be added onto the tabControl, so I used loop + tabControl.Children.Add("image1 to x") to add those images... but after that during runtime, I want to perform events on those image controls, such as dragging the image from the tabControl to another Panel. Is it possible to do so? If it's possible, how?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about controls