Diagram Control Issue during Dragging

2 posts, 0 answers
  1. Sabuj
    Sabuj avatar
    3 posts
    Member since:
    Apr 2012

    Posted 26 Apr Link to this post

    I have a diagram control, and I was drawing an arrow across it. I did this as ATP using Microsoft Coded UI. It recorded the sequence of steps correctly as well as the dragging, however, in the code behine it put  this statement as a comment.


    System parameter 'Show window contents while dragging' is not set.This could lead to incorrect recording of drag actions


    when running the ATP, when it comes to the stage of drawing the arrow, it just does not, stays there as though nothing is happening. Any advice whats happening? The particular windows system parameter is set to show contents when dragging. using windows server 2008 R2.

  2. Petar Mladenov
    Petar Mladenov avatar
    2882 posts

    Posted 28 Apr Link to this post

    Hello Sabuj,

    We are unable to reproduce such error when creating similar coded UI test with RadDiagram. Here is the code of our test which runs successfully:
    public void testDiagram()
              #region Variable Declarations
              WpfTreeItem uIDiagramTestsTreeItem = this.UIDiagramTestsMicrosofWindow.UITabGroupST005e2a3c77TabList.UISolutionExplorerTabPage.UIDiagramTestsTreeItem;
              WpfCustom uIDiagramCustom = this.UIMainWindowWindow.UIDiagramCustom;
              // Click 'DiagramTests' tree item
              Mouse.Click(uIDiagramTestsTreeItem, new Point(88, 6));
              // Type '{F5}' in 'DiagramTests' tree item
              Keyboard.SendKeys(uIDiagramTestsTreeItem, this.testDiagramParams.UIDiagramTestsTreeItemSendKeys, ModifierKeys.None);
              // Move 'diagram' custom control
              Mouse.StartDragging(uIDiagramCustom, new Point(188, 102));
              Mouse.Move(uIDiagramCustom, new Point(200, 500));
              Mouse.StopDragging(uIDiagramCustom, 473, 35);

    Could you please elaborate a bit more on your scenario - which VS version do you use, how do you create the test, you can send us a captured video too ? Thank you in advance for your cooperation.

    Petar Mladenov
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top