AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
24.97k stars 2.17k forks source link

TransitioningContentControl Skip CrossFade Transition on linux arm64 #15356

Open Mrcubix opened 4 months ago

Mrcubix commented 4 months ago

Describe the bug

Currently having an issue where the crossfade transition get skipped, showing the next content instantly on arm 64 bits, more specifically on my Raspberry Pi 4.

To Reproduce

The TransitioningContentControl used is as follow:

<TransitioningContentControl Content="{Binding NextViewModel}">

  <TransitioningContentControl.PageTransition>
    <CrossFade Duration="00:00:01" />
  </TransitioningContentControl.PageTransition>

  <TransitioningContentControl.DataTemplates>
    <DataTemplate DataType="vm:MainViewModel">
      <views:MainView />
    </DataTemplate>
    <DataTemplate DataType="vm:OtherViewModel">
      <views:OtherView />
    </DataTemplate>
  </TransitioningContentControl.DataTemplates>

</TransitioningContentControl >

Expected behavior

A 1 second fade, from one view to another occur.

Avalonia version

11.0.10

OS

Linux

Additional context

The behavior works as expected on windows x64.

Raspberry Pi (arm64) (X11):

https://github.com/AvaloniaUI/Avalonia/assets/39861216/7e6f4a99-841c-4e7f-924c-5d54b12f6631

Windows 10 (x64):

https://github.com/AvaloniaUI/Avalonia/assets/39861216/133f1d75-9aaa-4dac-b156-207ca5a84e76

maxkatz6 commented 4 months ago

@kekekeks I suppose there are differences in dispatcher implementation here playing a role.