CommunityToolkit / WindowsCommunityToolkit

The Windows Community Toolkit is a collection of helpers, extensions, and custom controls. It simplifies and demonstrates common developer tasks building .NET apps with UWP and the Windows App SDK / WinUI 3 for Windows 10 and Windows 11. The toolkit is part of the .NET Foundation.
https://docs.microsoft.com/windows/communitytoolkit/
Other
5.89k stars 1.37k forks source link

Offset Animation failed in XAML code #206

Closed chungweileong94 closed 8 years ago

chungweileong94 commented 8 years ago

As the image below: untitled

deltakosh commented 8 years ago

Does it work when running it?

chungweileong94 commented 8 years ago

No, it throw XamlParseException

deltakosh commented 8 years ago

Can you compare with what we have in the sample app for offset ?

chungweileong94 commented 8 years ago

nothing difference to my code

deltakosh commented 8 years ago

And does the sample app compile and work on your computer? If yes you may be missing a reference or not using the good sdk (10586 and 14393 are fine)

chungweileong94 commented 8 years ago

yes, the sample app did work on my PC

deltakosh commented 8 years ago

Ok so there is something wrong in your project:)

chungweileong94 commented 8 years ago

OK, I will check on my project.

deltakosh commented 8 years ago

Ok please keep us posted

chungweileong94 commented 8 years ago

I tried repair my Visual Studio, but didn't stand a chance =(

This is all the references in my project:

untitled

runceel commented 8 years ago

I have same issue. I couldn't work Blur and Offset behavior.

default

My project reference is follows.

{
  "dependencies": {
    "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2",
    "Microsoft.Toolkit.Uwp.UI.Animations": "1.0.0",
    "Microsoft.Xaml.Behaviors.Uwp.Managed": "1.1.0"
  },
  "frameworks": {
    "uap10.0": {}
  },
  "runtimes": {
    "win10-arm": {},
    "win10-arm-aot": {},
    "win10-x86": {},
    "win10-x86-aot": {},
    "win10-x64": {},
    "win10-x64-aot": {}
  }
}
deltakosh commented 8 years ago

Do you mind sharing a simple repro project?

chungweileong94 commented 8 years ago

I created a simple project, here's the link: SimpleAnimation

deltakosh commented 8 years ago

I'll check it asap(like next week, sorry for the delay but I'm not in the office right now:))