Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The reference node is not a child of this node #36

Open
mnusr opened this issue Jul 29, 2017 · 3 comments
Open

The reference node is not a child of this node #36

mnusr opened this issue Jul 29, 2017 · 3 comments

Comments

@mnusr
Copy link

mnusr commented Jul 29, 2017

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

@jongleur1983
Copy link

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.

@jogibear9988
Copy link
Member

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

@jongleur1983
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants