-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for SKXamlCanvas on Uno Platform SkiaSharp backends #1634
Conversation
Looks like the rebuild passed most of the tests :) The rest is likely azure devops security from forks. @mattleibow Is there something I can help you with ? |
Sorry about the incredibly delay, MAUI was a bit of beast :) Is it possible to add a sample for the Skia backends? Only has to be a basic sample in say I notice there is a targets file to set the Now that I got some time, I hope to merge this and release a preview. |
3a9d0eb
to
3fd7515
Compare
2ded64d
to
bb8b8c2
Compare
@mattleibow do you know what the build errors are ? I'd guess it's fork-related authorizations :) |
@mattleibow Is it possible to approve this pool request? our team are waiting for that! |
…ckends This enables SKXamlCanvas for Uno Platform's support for for GTK (Linux, Windows, macOS), WPF and Tizen, for Uno 3.6 and later.
bb8b8c2
to
834cad3
Compare
Closing in favor of #1704 |
…1634) (#1704) * fix: [Uno] SKXamlCanvas is now a Canvas * feat: Add support for SKXamlCanvas when running on SkiaSharp based backends This enables SKXamlCanvas for Uno Platform's support for for GTK (Linux, Windows, macOS), WPF and Tizen, for Uno 3.6 and later. * feat: Add Uno Skia samples * bump uno samples to latest uno.ui for VS 16.10 pre3 changes * Update Uno all packages * ci: adjust for wasm net5 * fix: Update WPF sample * Remove unsupported tizen sample * chore: Update to Uno.UI 3.7.6 to fix invalid SkiaSharp.Views dependency * Update llvm to v11.1 Co-authored-by: Jerome Laban <jerome.laban@nventive.com>
Description of Change
Add support for
SKXamlCanvas
on Uno Platform SkiaSharp backends, by using software rendering onto an off-screen surface.While the
SKSwapChainPanel
is present (as it is part of the reference API shared with WebAssembly), it is currently not implemented.In order to support this change, the
SKXamlCanvas
which was incorrectly inheriting fromFrameworkElement
, is now inheriting fromCanvas
, which exposes theBackground
property. It is a breaking change, but all the properties ofFrameworkElement
are also present onCanvas
, which will not break existing code.Note that non-breaking fixes are needed in Uno for this change to work properly (unoplatform/uno#5266), those will be included as part of Uno 3.5.x and 3.6.
API Changes
Changed:
SKXamlCanvas : FrameworkElement
->SKXamlCanvas : Canvas
Behavioral Changes
None.
PR Checklist