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.26k stars 1.76k forks source link

[Windows] Opening the flyout menu result in a binding failure #25995

Open Natriss opened 2 days ago

Natriss commented 2 days ago

Description

When you open and debug a .NET MAUI Windows app and open the navigation pane (flyout menu). It will give a binding failure. Severity - Error Count - 1 Data Context - Microsoft.UI.Xaml.Controls.SplitView Binding Path - TemplateSettings.CompactPaneGridLength Target - Microsoft.UI.Xaml.Media.Animation.SplineDoubleKeyFrame.Value Target Type - Double Description - Converter failed to convert value of type 'Windows.Foundation.IReference`1' to type 'Double' File - null Line - null Project - null

https://github.com/user-attachments/assets/d3696e8a-34c6-49df-bd9b-3255d61cd1e3

Steps to Reproduce

  1. Create a .NET MAUI app
  2. Set Shell.FlyoutBehavior to Flyout
  3. Debug the app and open the Flyout

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

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

10.0.19041.0

Did you find any workaround?

No response

Relevant log output

kevinxufei commented 2 days ago

This issue cannot be reproduced at Windows platform on the latest 17.13 Preview 1(9.0.10 & 9.0.0),but it's worth mentioning that I reproduced this problem on 8.0.100.

Natriss commented 2 days ago

I am using the latest preview of Visual Studio with the latest release build of .NET 9.

Natriss commented 2 days ago

https://github.com/[Natriss/MauiFlyoutIssue](https://github.com/Natriss/MauiFlyoutIssue) Because the video is too big I've uploaded on my OneDrive so you can see it. It's a full process from start to end. Full video