unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.97k stars 730 forks source link

[Flipview] Flipview broken after upgraded Uno.WinUI to 5.xxx #14551

Closed DosangGu closed 10 months ago

DosangGu commented 11 months ago

Current behavior

When using Flipview, I expected to see only one item appers, but previous and next item also appears. In 4.xxx version, I could only find one item.

<Page x:Class="UnoFlipviewBugReproduce.Presentation.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="using:UnoFlipviewBugReproduce.Presentation"
      xmlns:uen="using:Uno.Extensions.Navigation.UI"
      xmlns:utu="using:Uno.Toolkit.UI"
      xmlns:um="using:Uno.Material"
      NavigationCacheMode="Required"
      Background="{ThemeResource BackgroundBrush}">

  <Grid utu:SafeArea.Insets="VisibleBounds" Background="Black">
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="0.5*"/>
      <ColumnDefinition Width="180"/>
      <ColumnDefinition Width="0.5*"/>
    </Grid.ColumnDefinitions>
    <utu:NavigationBar Content="{Binding Title}" />

    <FlipView Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Background="Green">
      <FlipView.Items>
        <Image Source="https://uno-website-assets.s3.amazonaws.com/wp-content/uploads/2023/05/12135417/logo.png"/>
        <Image Source="https://uno-website-assets.s3.amazonaws.com/wp-content/uploads/2023/05/12135417/logo.png"/>
        <Image Source="https://uno-website-assets.s3.amazonaws.com/wp-content/uploads/2023/05/12135417/logo.png"/>
        <Image Source="https://uno-website-assets.s3.amazonaws.com/wp-content/uploads/2023/05/12135417/logo.png"/>
        <Image Source="https://uno-website-assets.s3.amazonaws.com/wp-content/uploads/2023/05/12135417/logo.png"/>
      </FlipView.Items>
    </FlipView>
  </Grid>
</Page>

image

Expected behavior

Only one focused item should appears

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

Checkout my bug reproducing repo. https://github.com/DosangGu/UnoFlipviewBugReproduce

Reproduced using .net7 and .net8(check branches)

Workaround

No response

Works on UWP/WinUI

None

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

Uno.WinUi 5.0.48

Affected platforms

Android

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

jeromelaban commented 11 months ago

@ajpinedam does this look familiar?

sang-hyeon commented 11 months ago

same issue here.

DosangGu commented 11 months ago

Are there any temporary solutions for this issue? I need some features(like enhanced hot reload) of Uno 5.0.

jeromelaban commented 11 months ago

@DosangGu there isn't at this time, we'll provide updates to this issue when we will.

DosangGu commented 9 months ago

Still facing the issue with version 5.0.152. When do you expect the fix shipped?