how to set the command and command parameter on mouseclick on textbox in xaml?
From stackoverflow
-
TextBoxes don't extend from ButtonBase and therefore don't work with Commands. What you're trying to do is wrong. You should ask another question that states your requirements and asks how best to go about achieving them.
-
You can use attached command behaviors.
HTH, Kent
-
Use the PreviewMouseDown of textbox.
-
As Ortis Mallum answered, the PreviewMouseDown event does work.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.