WpfDesigner icon indicating copy to clipboard operation
WpfDesigner copied to clipboard

The reference node is not a child of this node

Open mnusr opened this issue 8 years ago • 3 comments

Steps to reproduce:

  1. Run XamlDesigner project and add a button.
  2. Click the left skew handle and drag it down to skew the button a bit.
  3. Try to rotate it.

Exception thrown at line 513 in XamlProperty.cs

mnusr avatar Jul 29 '17 12:07 mnusr

I'd love to get some help solving this (see linked PR). I'm pretty sure, that the fix proposed in XamlProperty.cs is correct, but the functional behavior of the demo application is still strange and doesn't look correct IMHO. If anyone could verify and point me to the right direction, that would be great.

jongleur1983 avatar Oct 06 '19 12:10 jongleur1983

Maybe your fix in XamlProperty is correct (I'll take a look), but to fix this correctly I think you need to fix ApplyTransform in ModelTools.cs

The RotateTransform Extension does already use this, the Skew Extension not, so this needs to be fixed. And this function needs to be changed so it loads and keeps existing Transforms when applying a new one

jogibear9988 avatar Oct 07 '19 05:10 jogibear9988

Thanks @jogibear9988 for the hint. Good to know that I may be on the right track. Looking forward to tackle the rest of this issue in the next days.

jongleur1983 avatar Oct 07 '19 07:10 jongleur1983