Xamarin.forms: [Bug] DualScreenInfo with Shell

Created on 6 Sep 2020  路  2Comments  路  Source: xamarin/Xamarin.Forms

Description

When you try to use the DualScreenInfo.Current.SpanMode to determine if the application is running on dual screens in a Shell based application it always returns SinglePane.

Steps to Reproduce

  1. Create a new Xamarin Forms project with the Tabbed Shell template.
  2. Update Xamarin.Forms to 4.8
  3. Add the Xamarin.Forms.DualScreen NuGet package.
  4. Add Debug.WriteLine(DualScreenInfo.Current.SpanMode); to OnAppearing on the ItemsPage.
  5. Run the application in Debug mode on the Surface Duo Emulator.
  6. Span the application on both screens.
  7. Change to the Browse view in the application.
  8. SpanMode will still be SinglePane.

Expected Behavior

DualScreenInfo.Current.SpanMode should be Wide.

Actual Behavior

SpanModeDualScreenInfo.Current.SpanMode will still be SinglePane.

Basic Information

  • Version with issue: 4.8.0.1364
  • Last known good version: Unknown
  • IDE: Visual Studio Community 2019 Version 16.7.2
  • Platform Target Frameworks:

    • Android: 10.0

  • Nuget Packages: Xamarin.Forms.DualScreen
  • Affected Devices: Surface Duo Emulator

Reproduction Link

https://github.com/scottkuhl/DualBug

dualscreen shell unverified bug

All 2 comments

Shell AND DualScreen => this is @PureWeen 's sweet spot ! Could you answer this, Shane ?

I seem to have been able to narrow this down to being a bug in an older version of the Surface Duo emulator. I can't recreate the issue on a new version. Closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joseluisct picture joseluisct  路  3Comments

rmarinho picture rmarinho  路  3Comments

deakjahn picture deakjahn  路  3Comments

Hudhud picture Hudhud  路  3Comments

jgold6 picture jgold6  路  3Comments