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

Window Community Toolkit implicit animations do not work on android #17834

Open
DavidM29 opened this issue Aug 5, 2024 · 4 comments
Open

Window Community Toolkit implicit animations do not work on android #17834

DavidM29 opened this issue Aug 5, 2024 · 4 comments
Labels
area/composition Categorizes an issue or PR as relevant to Composition APIs kind/bug Something isn't working project/animations 🎡 Categorizes an issue or PR as relevant to animations

Comments

@DavidM29
Copy link

DavidM29 commented Aug 5, 2024

Current behavior

If page contains Windows Community Toolkit implicit animations, it does not get rendered at all on android. This bug might be on other platforms as well, however I have only tested it on windows and android.

Expected behavior

The page must get rendered and work as expected, if animations do not work for performance reasons it should not break the whole page.

How to reproduce it (as minimally and precisely as possible)

Run the app on windows, the page and animations work as expected.
Run on android, button and rectangle does not get rendered at all.
UnoApp1.zip

Workaround

Implicit animations can be created from code-behind using conditional compilation to make it not affect the page on android.

Works on UWP/WinUI

Yes

Environment

Other

NuGet package version(s)

"Uno.Sdk": "5.3.90"
CommunityToolkit.WinUI.Animations: 8.0.240109

Affected platforms

Android

IDE

Visual Studio 2022

IDE version

17.10.5

Relevant plugins

No response

Anything else we need to know?

No response

@DavidM29 DavidM29 added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Aug 5, 2024
@MartinZikmund MartinZikmund added project/animations 🎡 Categorizes an issue or PR as relevant to animations and removed triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Aug 5, 2024
@MartinZikmund
Copy link
Member

Implicit animations are indeed not supported in Uno Platform yet. To work around this, you can keep them as WinUI specific using https://platform.uno/docs/articles/platform-specific-csharp.html and https://platform.uno/docs/articles/platform-specific-xaml.html

@MartinZikmund MartinZikmund added the area/composition Categorizes an issue or PR as relevant to Composition APIs label Aug 5, 2024
@DavidM29
Copy link
Author

DavidM29 commented Aug 6, 2024

Kind of related to this, can I check somewhere exactly which WCT controls work in uno, because I did have some similar experience with other WCT controls, for example Settings Expander, but I know it is tracked, however I could not find anything about wrap panel, so if it's not tracked I will open an issue for it.

@d2dyno1
Copy link

d2dyno1 commented Sep 27, 2024

Perhaps it's going to change with this PR? #18267

@MartinZikmund
Copy link
Member

@d2dyno1 Yes, but only for desktop targets for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/composition Categorizes an issue or PR as relevant to Composition APIs kind/bug Something isn't working project/animations 🎡 Categorizes an issue or PR as relevant to animations
Projects
None yet
Development

No branches or pull requests

3 participants