I'm trying to intercept a triple-click in a textbox control. I've tried this test code with breakpoints but only a single click is trapped. My goal is to override the double-click and triple-click behaviour to highlight text in custom ways. I had double-click working by handling the DoubleClick event and doing my stuff in there, and then also handling SelectionChanging to override the default behaviour there (or my custom highlighting would be still overridden by the default double-click handling, which is to select the entire current line).
private
void
TxtboxOnMouseClick(
object
sender, MouseEventArgs mouseEventArgs)
{
var clicks = mouseEventArgs.Clicks;
switch
(clicks)
{
case
1:
break
;
case
2:
break
;
case
3:
break
;
}
}