I have so dinamically add some MyLabels (custom WPF Controls) in MyUserControl (Custom UserControl).
I need to redirect the click on that labels to a function(say, OnMyLabelClick).
Can I associate a style or something with TargetType='MyLabel' in order to automatically redirect my click from each myLabel to that function?
1 Answer