This could just be me not quite getting a grasp of routed events yet, but I can't seem to figure this out...
I'm trying to fire an event when a label is clicked. I could do this without an issue in winforms.
However in WPF, I get the error: 'Click' is not an event of 'System.Windows.Controls.Label'
This make little sense to me, and therfore the only way I can see through this at the moment is to put the label on top of a button, or use a button that just looks like a label.
This seems very restrictive for a UI development that is supposed to give us more freedom than ever before!
I'm trying to fire an event when a label is clicked. I could do this without an issue in winforms.
However in WPF, I get the error: 'Click' is not an event of 'System.Windows.Controls.Label'
This make little sense to me, and therfore the only way I can see through this at the moment is to put the label on top of a button, or use a button that just looks like a label.
This seems very restrictive for a UI development that is supposed to give us more freedom than ever before!