dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.04k stars 1.73k forks source link

SwipeView does not honor MaximumHeightRequest in windows #21915

Open JPfahl opened 5 months ago

JPfahl commented 5 months ago

Description

I am collapsing groups in a collectionview, for items wrapped in a swipeView, setting the MaximumHeightRequest does not collapse the view. This means I can't animate the collapse, all I can do is set IsVisible to false.

Steps to Reproduce

                        <SwipeView MaximumHeightRequest="0">
                            <SwipeView.RightItems>
                                <SwipeItems>
                                    <SwipeItemView>
                                        <Label Text="Test"/>
                                    </SwipeItemView>
                                </SwipeItems>
                            </SwipeView.RightItems>
                            <...Data here.../>
                        </SwipeView>

Link to public reproduction project repository

No response

Version with bug

8.0.20 SR4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

Zhanglirong-Winnie commented 5 months ago

Verified this issue with Visual Studio 17.10.0 Preview 4(8.0.20). Can repro on Windows platform.