I have a UserControl that, oddly enough, links many other controls and logic to a neat little package. It has a Text property that accepts stringand does magic, displaying results for the user. Tall.
I get this text from a TextBox. The user pastes the text from the clipboard into the text field that is bound to the DP on my UserControl.
What I would like to do is cut out the middle person and accept the paste in my UserControl.
I have already tried using the attached DataObject.Pasting event , but it does not seem to work.
How do you do this?
My own question answered with my current solution, but honestly, it "smells". If someone has a better answer, add it, and if it works, and better, I will choose it.
source
share