You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did not try on earlier versions of Maui or these SkiaSharp nugets.
Before Maui, we used OpenTK.GLWpfControl with SkiaSharp.Views.WPF under .Net Framework. That older version of our app builds and runs on this PC without problems.
Code
Maui App template. Modified to add SKGLView. Removed AppShell and other unneeded stuff.
public MainPage(){
InitializeComponent();
MainThread.BeginInvokeOnMainThread(async()=>{await Task.Delay(2000);// UNCOMMENT these lines to test adding SKGLView in code.//var skv = new SKGLView() { WidthRequest = 300, HeightRequest = 300 };// Below line: Exception: "Handler not found for view SkiaSharp.Views.Maui.Controls.SKGLView."//layout.Children.Add(skv);});}
You can also share some XAML:
<ContentPagexmlns:sk="clr-namespace:SkiaSharp.Views.Maui.Controls;assembly=SkiaSharp.Views.Maui.Controls"
...
<VerticalStackLayout x:Name="layout"Padding="30,0"Spacing="25">
<!-- Exception: "Handler not found for view SkiaSharp.Views.Maui.Controls.SKGLView." -->
<sk:SKGLViewWidthRequest="500"HeightRequest="300"BackgroundColor="Green" />
</VerticalStackLayout>
Expected Behavior
A Window containing an SKGLView.
Actual Behavior
Unhandled Exception:
"Handler not found for view SkiaSharp.Views.Maui.Controls.SKGLView."
Version of SkiaSharp
Other (Please indicate in the description)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
Windows 11 Home.
Did not test elsewhere.
Devices
No response
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Description
Target Windows Machine, get Unhandled Exception:
"Handler not found for view SkiaSharp.Views.Maui.Controls.SKGLView."
-- Other details --
.csproj targetframework: net8.0-windows10.0.19041.0
VS Community 17.9.7 on Windows 11 Home
Tested with Microsoft.Maui.Controls 8.0.40 +
SkiaSharp.Views & SkiaSharp.Views.Maui Controls:
latest stable 2.88.8, then tried
latest preview 3.0.0-preview.3.1
Did not try on earlier versions of Maui or these SkiaSharp nugets.
Before Maui, we used OpenTK.GLWpfControl with SkiaSharp.Views.WPF under .Net Framework. That older version of our app builds and runs on this PC without problems.
Code
Maui App template. Modified to add SKGLView. Removed AppShell and other unneeded stuff.
ToolmakerSteve/MauiAppWithSKGLView
You can also share some XAML:
Expected Behavior
A Window containing an SKGLView.
Actual Behavior
Unhandled Exception:
"Handler not found for view SkiaSharp.Views.Maui.Controls.SKGLView."
Version of SkiaSharp
Other (Please indicate in the description)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
Windows 11 Home.
Did not test elsewhere.
Devices
No response
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: