Cannot create SKElement when using SkiaSharp.Views.WPF in Uno on Linux and Net 7.0 #12039
Unanswered
HowardPWeiss
asked this question in
Q&A
Replies: 2 comments
-
Thanks for the report. It seems that you're trying to use SkiaSharp in your application, and you should be taking a look at https://github.com/unoplatform/Uno.Samples/tree/master/UI/SkiaSharpTest. In an Uno Platform XAML tree, you need to use Uno Platform compatible controls, such as |
Beta Was this translation helpful? Give feedback.
0 replies
-
The sample works. Thank you
I was using SkiaSharp.Views.WPF rather than SkiaSharp.Views.Windows. From what I found on the Internet, I thought I needed to use SkiaSharp.Views.WPF and create an SKElement in Uno running on Linux and built using Visual Studio Core.
I still need to modify my application and see if that builds and works, etc.
Howard
… On 04/24/2023 8:28 AM Jérôme Laban ***@***.***> wrote:
Thanks for the report.
It seems that you're trying to use SkiaSharp in your application, and you should be taking a look at https://github.com/unoplatform/Uno.Samples/tree/master/UI/SkiaSharpTest. In an Uno Platform XAML tree, you need to use Uno Platform compatible controls, such as SKXamlCanvas.
—
Reply to this email directly, view it on GitHub #12039 (comment) , or unsubscribe https://github.com/notifications/unsubscribe-auth/AVW7USLVCBYOEUMRPX5YGV3XCZWXJANCNFSM6AAAAAAXIF7DXY .
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use SkiaSharp in a WPF project for Linux
I am using .Net 7, VisualStudioCode, Ubuntu 20.04
I have installed SkiaSharp.Views.WPF version 2.88.3. My MainPage,xaml looks like
When I run dotnet build, i see the following
SKElement is defined as follows:
However, System,WIndows.FrameWorkElement is not included in Net 7.0. Hence, the first error message "Unable to resolve System.Windows.FrameworkElement"
How do I fix this?
Howard Weiss
Beta Was this translation helpful? Give feedback.
All reactions