Example #1
0
        protected override void OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs e)
        {
            base.OnMouseLeftButtonUp(e);

            if (SetContextOnDoubleClick && MouseDoubleClickCheck.IsDoubleClick(e))
            {
                SendContextToServer(SetContextOnDoubleClick, DoubleClickAction);
            }
        }
Example #2
0
        protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
        {
            base.OnMouseLeftButtonUp(e);

            bool isDoubleClick = MouseDoubleClickCheck.IsDoubleClick(e);

            if (IsReadOnly && SetContextOnDoubleClick && isDoubleClick)
            {
                SendContextToServer(SetContextOnDoubleClick, DoubleClickAction);
            }

            if (isDoubleClick & ItemDoubleClick != null)
            {
                ItemDoubleClick(this, new EventArgs());
            }
        }