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

Unable to set ScaleEffect.Scale in a UWP app (Vector2 issue) #145

Closed
ScottIsAFool opened this issue Aug 29, 2015 · 3 comments
Closed

Unable to set ScaleEffect.Scale in a UWP app (Vector2 issue) #145

ScottIsAFool opened this issue Aug 29, 2015 · 3 comments

Comments

@ScottIsAFool
Copy link

I'm unable to set the Scale property on ScaleEffect. For whatever reason, the docs show that property as being a System.Numerics.Vector2, but when you try and set it, it thinks it's expecting Windows.Foundation.Numerics.Vector2. If I try and use the latter, it throws up saying that Vector2 is inaccessible due to it's protection level.

Steps to reproduce:

  1. Create new UWP project
  2. Add reference to Win2d.uwp
  3. Create new instance of ScaleEffect
  4. Try and set its Scale to be a new System.Numerics.Vector2. It will not let you.

Is this something I'm doing wrong?!

@ScottIsAFool
Copy link
Author

Looks like this was a Resharper red herring. I just assumed as I was seeing a red squiggly line and telling me what the problem was that it wouldn't build. If I'd actually tried building, it would have still completed.

@tutushkin
Copy link

This one is fixed in R#10 and the fix will be available in one of the next EAP builds.

@ScottIsAFool
Copy link
Author

Great to know, thanks.

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

2 participants