Search

Rehosted Workflow Designer stops changing resizing mouse cursor by Petr Altman

Closed
as Fixed Help for as Fixed

6
0
Sign in
to vote
Type: Bug
ID: 534173
Opened: 2/17/2010 2:47:27 AM
Access Restriction: Public
2
Workaround(s)
8
User(s) can reproduce this bug
After starting rehosted workflow designer mouse cursor on any splitters in WPF application does not change to resize cursor.

In VS 2010 Beta2 it works normally.
Details (expand)

Product Language

English

Version

Visual Studio 2010 Release Candidate

Operating System

Windows Server 2008

Operating System Language

English

Steps to Reproduce

Run sample from WF - WF\Basic\DesignerRehosting\Basic. See the behavior of splitters in property window or in variables and imports area.

Actual Results

No cursor change on splitters.

Expected Results

Cursor should change to resizing on splitters.
      You can indicate your satisfaction with how Microsoft handled this issue by completing this quick 3 question survey. [Details]

 

File Attachments
0 attachments
Sign in to post a comment.
Posted by DavidFromCanada on 7/23/2010 at 6:35 AM
This bug has not been fixed. The problem still exists in the RTM version. It seems that somehow, the workflow designer is setting Mouse.OverrideCursor = Cursors.Arrow, but is never setting it back to null. I have not found a suitable workaround for this problem.
Posted by Bob Riddle on 5/12/2010 at 11:07 AM
Ditto for me with the WF4 Designer. We also saw the behavior posted by rcooney below (fixes itself when expand the Arguments editor and then stays "fixed" even if you close the Arguments editor) and noticed that this does NOT "fix" itself if you instead expand either "Variables" or "Imports".

With our intended users having larger workflow designs and generally small monitors, screen space for the middle of the designer is at a premium. We really need a fix for this.
Posted by rcooney on 3/31/2010 at 6:31 PM
I'm having the same problem in a rehosted designer. I've noticed that it corrects itself when you expand the "Arguments" editor. Very weird.

Ryan
Posted by Petr Altman on 3/18/2010 at 3:34 AM
Hi,

When using rehosted workflow designer mouse cursor stops changing in whole application (not only in designer) which is very annoying. It would be nice to have a fix or at least a workaround.

Thanks,
Petr
Posted by Microsoft on 2/23/2010 at 1:57 PM
Thank you for using .NET Framework 4.0 providing feedback on the WCF and WF products. This bug is currently going to the feature team who will directly investigate the issue you are reporting. We are very eager to receive this feedback and will take care to address your input. Feel free to provide comments on the Connect site if you have concerns on the resolution of this bug.

Thanks,
Scott
Posted by Microsoft on 2/17/2010 at 7:01 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by Felice Pollano on 3/7/2011 at 2:26 PM
I workaround this by "bolding" the splitter:
<Style TargetType="GridSplitter">
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="true">
                    <Setter Property="Background" Value="Black"/>
                    <Setter Property="Cursor" Value="Hand"/>
                </Trigger>

            </Style.Triggers>
        </Style>

more info here: http://www.felicepollano.com/2011/03/07/WF4ReHostingLetsShowThePropertyGrid.aspx
Posted by Robert Jeppesen on 6/16/2011 at 1:49 AM
In the 'loaded' event:
     private void MyControl_Loaded(object sender, RoutedEventArgs e)
     {
         // Here we clear Mouse.OverrideCursor. The trick is, it needs to be done 'after a while'. I could find no place to do it without setting a delay on it.
         var timer = new System.Windows.Threading.DispatcherTimer();
         timer.Interval = TimeSpan.FromSeconds(1);
         timer.Tick += new EventHandler((s, ev) => { Mouse.OverrideCursor = null; });
         timer.Start();
     }