Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/damiansuess/learn.dualscreen
Xamarin Dual Screen with Prism Library
https://github.com/damiansuess/learn.dualscreen
dual-screen prismlibrary suesslabs xamarin-forms
Last synced: about 4 hours ago
JSON representation
Xamarin Dual Screen with Prism Library
- Host: GitHub
- URL: https://github.com/damiansuess/learn.dualscreen
- Owner: DamianSuess
- License: mit
- Created: 2022-01-03T23:19:42.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-18T00:44:58.000Z (over 2 years ago)
- Last Synced: 2024-11-12T09:14:13.376Z (about 1 month ago)
- Topics: dual-screen, prismlibrary, suesslabs, xamarin-forms
- Language: C#
- Homepage: https://suesslabs.com
- Size: 462 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# .NET MAUI Dual Screen Sample
This repo provides a sample as to how to work with Dual-Screen mobile applications.
DualScreen for Surface Duo and Samsung foldables!
Currently this feature is undocumented in .NET MAUI, however, we can
take a sneak-peak at PR #5020 to reconstruct what's going on here.[https://github.com/dotnet/maui/pull/5020]
## How to use
Initialize in your Host Builder via `.UseFoldable()` (`Startup.cs`)
Namespaces:
* Control - `Microsoft.Maui.Controls.Foldable.TwoPaneView`
* Class - `Microsoft.Maui.Foldable.DualScreenInfo`## DualScreenInfo
* **SpanningBounds** – when spanned across two screens, return two rectangles indicating the bounds of each visible area. This property will return an empty array if the window isn't spanned.
* **HingeBounds** – the position of the hinge on the screen.
* **IsLandscape** – if the device is landscape. This property is useful because native orientation APIs don't report orientation correctly when an application is spanned.
* **SpanMode** – whether the layout is in tall, wide, or single pane mode.## References
* [Dual-Screen Docs](https://docs.microsoft.com/en-us/dual-screen/introduction#dual-screen-app-patterns)
* [Suess Labs](https://suesslabs.com/)
* [Prism Library](https://prismlibrary.com/)
* [https://devblogs.microsoft.com/xamarin/xamarin-goes-dual-screen/]
* [Learn Module](https://docs.microsoft.com/en-us/learn/modules/xamarin-forms-dual-screen/2-display-two-screens)