Skip to content
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 a GTK# renderer for Xamarin.Forms #487

Closed
mattleibow opened this issue Apr 11, 2018 · 3 comments
Closed

Add a GTK# renderer for Xamarin.Forms #487

mattleibow opened this issue Apr 11, 2018 · 3 comments

Comments

@mattleibow
Copy link
Contributor

No description provided.

@mattleibow
Copy link
Contributor Author

Duplicate of #379

@mattleibow mattleibow marked this as a duplicate of #379 Apr 11, 2018
@mattleibow mattleibow removed this from the 1.60.1 milestone May 22, 2018
@hflexgrig
Copy link

Is there any news from this. I'm currently using SkiaSharp.Views.Forms for my application, and it won't work for my application. Error i'm getting is

"System.InvalidCastException: Unable to cast object of type 'SkiaSharp.Views.Forms.SKCanvasViewRenderer' to type 'Xamarin.Forms.IRegisterable'.
at Xamarin.Forms.Internals.Registrar1.GetHandler(Type type, Type visualType) in D:\a\1\s\Xamarin.Forms.Core\Registrar.cs:line 71 at Xamarin.Forms.Internals.Registrar1.GetHandlerForObject[TOut](Object obj) in D:\a\1\s\Xamarin.Forms.Core\Registrar.cs:line 111
at Xamarin.Forms.Platform.GTK.Platform.CreateRenderer(VisualElement element) in D:\a\1\s\Xamarin.Forms.Platform.GTK\Platform.cs:line 94
at Xamarin.Forms.Platform.GTK.Packagers.PageElementPackager.OnChildAdded(VisualElement view) in D:\a\1\s\Xamarin.Forms.Platform.GTK\Packagers\PageElementPackager.cs:line 14
at Xamarin.Forms.Platform.GTK.Packagers.VisualElementPackager1.Load() in D:\a\1\s\Xamarin.Forms.Platform.GTK\Packagers\VisualElementPackager.cs:line 40 at Xamarin.Forms.Platform.GTK.Renderers.PageRenderer.OnShown() in D:\a\1\s\Xamarin.Forms.Platform.GTK\Renderers\PageRenderer.cs:line 29 at Gtk.Widget.shown_cb(IntPtr widget) at GLib.ExceptionManager.RaiseUnhandledException(Exception e, Boolean is_terminal) at Gtk.Widget.shown_cb(IntPtr widget) at Gtk.Widget.gtk_widget_show_all(IntPtr raw) at Xamarin.Forms.Platform.GTK.Renderers.TabbedPageRenderer.InsertPage(Page page, Int32 index) in D:\a\1\s\Xamarin.Forms.Platform.GTK\Renderers\TabbedPageRenderer.cs:line 150 at Xamarin.Forms.Platform.GTK.Renderers.TabbedPageRenderer.ResetPages() in D:\a\1\s\Xamarin.Forms.Platform.GTK\Renderers\TabbedPageRenderer.cs:line 175 at Xamarin.Forms.Platform.GTK.Renderers.TabbedPageRenderer.OnPagesChanged(Object sender, NotifyCollectionChangedEventArgs e) in D:\a\1\s\Xamarin.Forms.Platform.GTK\Renderers\TabbedPageRenderer.cs:line 116 at Xamarin.Forms.Platform.GTK.Renderers.TabbedPageRenderer.Init() in D:\a\1\s\Xamarin.Forms.Platform.GTK\Renderers\TabbedPageRenderer.cs:line 48 at Xamarin.Forms.Platform.GTK.Renderers.TabbedPageRenderer.OnElementChanged(VisualElementChangedEventArgs e) in D:\a\1\s\Xamarin.Forms.Platform.GTK\Renderers\TabbedPageRenderer.cs:line 44 at Xamarin.Forms.Platform.GTK.Renderers.AbstractPageRenderer2.SetElement(VisualElement element) in D:\a\1\s\Xamarin.Forms.Platform.GTK\Renderers\AbstractPageRenderer.cs:line 59
at Xamarin.Forms.Platform.GTK.Platform.CreateRenderer(VisualElement element) in D:\a\1\s\Xamarin.Forms.Platform.GTK\Platform.cs:line 97
at Xamarin.Forms.Platform.GTK.Platform.AddChild(Page mainPage) in D:\a\1\s\Xamarin.Forms.Platform.GTK\Platform.cs:line 143
at Xamarin.Forms.Platform.GTK.Platform.SetPage(Page newRoot) in D:\a\1\s\Xamarin.Forms.Platform.GTK\Platform.cs:line 126
at Xamarin.Forms.Platform.GTK.FormsWindow.UpdateMainPage() in D:\a\1\s\Xamarin.Forms.Platform.GTK\FormsWindow.cs:line 113
at Xamarin.Forms.Platform.GTK.FormsWindow.LoadApplication(Application application) in D:\a\1\s\Xamarin.Forms.Platform.GTK\FormsWindow.cs:line 42
at CSharpMath.Forms.Example.GTK.MainClass.Main(String[] args) in D:\Projects\csharpmath\CSharpMath.Forms.Example.GTK\Program.cs:line 19"

@mattleibow
Copy link
Contributor Author

@hflexgrig this looks like you are missing the GTK renderers. Unfortunately, I just haven't gotten around to that yet. See this issue: #379 If you really need to use GTK, you can have a go at creating your own renderers or giving #379 a thumbs up to show support. As the votes come in, it moves up the list.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants