Example #1
0
 protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
 {
     if (!view.SelectedItems.Contains(this.DataContext) || CtrlPressed)
     {
         view.SelectItem(this);
     }
     view.Backend.WidgetMouseDownForDragHandler(this, e);
     e.Handled = true;
     base.OnMouseLeftButtonDown(e);
 }
Example #2
0
        protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
        {
            var args = e.ToXwtButtonArgs(view.Backend.Widget);

            view.Backend.Context.InvokeUserCode(delegate() {
                view.Backend.EventSink.OnButtonPressed(args);
            });
            if (args.Handled)
            {
                e.Handled = true;
                return;
            }

            if (!view.SelectedItems.Contains(this.DataContext) || CtrlPressed)
            {
                view.SelectItem(this);
            }
            view.Backend.WidgetMouseDownForDragHandler(this, e);

            e.Handled = true;
            base.OnMouseLeftButtonDown(e);
        }
Example #3
0
 protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
 {
     view.SelectItem(this);
     e.Handled = true;
     base.OnMouseLeftButtonDown(e);
 }