V
V
Victor Nasonov2017-06-24 00:39:34
Mono
Victor Nasonov, 2017-06-24 00:39:34

How to make awesomium work on mono gtk#?

Downloaded xamarin and gtk sharp and installed. I also installed the awesomium.windows.forms.unofficial package from nuget.
How to run it in code?
Or how to create a windows forms project in mono and run awesomium there, if not with gtk#?
Here is the code, but the browser is not showing up..

using Gtk;

namespace catpost_vk_scanner
{
  class MainClass
  {
    public static void Main(string[] args)
    {
      Application.Init();
      MainWindow win = new MainWindow();
      win.Show();
      Application.Run();
    }
  }
}

using Gtk;
using Awesomium.Core;
using System;

public partial class MainWindow : Gtk.Window
{
  public MainWindow() : base(Gtk.WindowType.Toplevel)
  {
    Build();
    WebView view = WebCore.CreateWebView(654, 422);
    view.Source = new Uri("http://google.ru");
  }

  protected void OnDeleteEvent(object sender, DeleteEventArgs a)
  {
    Application.Quit();
    a.RetVal = true;
  }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question